mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +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
(cherry picked from commit a5ae546b88
)
This commit is contained in:
committed by
Asterisk Development Team
parent
52a80f974b
commit
f72d97b7b1
@@ -355,7 +355,7 @@ int ast_rtp_engine_register2(struct ast_rtp_engine *engine, struct ast_module *m
|
||||
|
||||
AST_RWLIST_UNLOCK(&engines);
|
||||
|
||||
ast_verb(2, "Registered RTP engine '%s'\n", engine->name);
|
||||
ast_verb(5, "Registered RTP engine '%s'\n", engine->name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -367,7 +367,7 @@ int ast_rtp_engine_unregister(struct ast_rtp_engine *engine)
|
||||
AST_RWLIST_WRLOCK(&engines);
|
||||
|
||||
if ((current_engine = AST_RWLIST_REMOVE(&engines, engine, entry))) {
|
||||
ast_verb(2, "Unregistered RTP engine '%s'\n", engine->name);
|
||||
ast_verb(5, "Unregistered RTP engine '%s'\n", engine->name);
|
||||
}
|
||||
|
||||
AST_RWLIST_UNLOCK(&engines);
|
||||
@@ -399,7 +399,7 @@ int ast_rtp_glue_register2(struct ast_rtp_glue *glue, struct ast_module *module)
|
||||
|
||||
AST_RWLIST_UNLOCK(&glues);
|
||||
|
||||
ast_verb(2, "Registered RTP glue '%s'\n", glue->type);
|
||||
ast_verb(5, "Registered RTP glue '%s'\n", glue->type);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -411,7 +411,7 @@ int ast_rtp_glue_unregister(struct ast_rtp_glue *glue)
|
||||
AST_RWLIST_WRLOCK(&glues);
|
||||
|
||||
if ((current_glue = AST_RWLIST_REMOVE(&glues, glue, entry))) {
|
||||
ast_verb(2, "Unregistered RTP glue '%s'\n", glue->type);
|
||||
ast_verb(5, "Unregistered RTP glue '%s'\n", glue->type);
|
||||
}
|
||||
|
||||
AST_RWLIST_UNLOCK(&glues);
|
||||
|
Reference in New Issue
Block a user