mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Reduce startup/shutdown verbose logging
When started with a verbose level of 3, asterisk can emit over 1500 verbose message that serve no real purpose other than to fill up logs. When asterisk shuts down, it emits another 1100 that are of even less use. Since the testsuite runs asterisk with a verbose level of 3, and asterisk starts and stops for every one of the 700+ tests, the number of log messages is staggering. Besides taking up resources, it also makes it hard to debug failing tests. This commit changes the log level for those verbose messages to 5 instead of 3 which reduces the number of log messages to only a handful. Of course, NOTICE, WARNING and ERROR message are unaffected. There's also one other minor change... ast_context_remove_extension_callerid2() logs a DEBUG message instead of an ERROR if the extension you're deleting doesn't exist. The pjsip_config_wizard calls that function to clean up the config and has been triggering that annoying error message for years. Resolves: #582
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
d715c76fcb
commit
6871d1cdfc
@@ -672,7 +672,7 @@ int ast_dns_resolver_register(struct ast_dns_resolver *resolver)
|
||||
|
||||
AST_RWLIST_UNLOCK(&resolvers);
|
||||
|
||||
ast_verb(2, "Registered DNS resolver '%s' with priority '%d'\n", resolver->name, resolver->priority);
|
||||
ast_verb(5, "Registered DNS resolver '%s' with priority '%d'\n", resolver->name, resolver->priority);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -695,7 +695,7 @@ void ast_dns_resolver_unregister(struct ast_dns_resolver *resolver)
|
||||
AST_RWLIST_TRAVERSE_SAFE_END;
|
||||
AST_RWLIST_UNLOCK(&resolvers);
|
||||
|
||||
ast_verb(2, "Unregistered DNS resolver '%s'\n", resolver->name);
|
||||
ast_verb(5, "Unregistered DNS resolver '%s'\n", resolver->name);
|
||||
}
|
||||
|
||||
char *dns_find_record(const char *record, size_t record_size, const char *response, size_t response_size)
|
||||
|
Reference in New Issue
Block a user