mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
logger: Always enable verbose for console channel.
Previous versions of Asterisk did not require verbose to be specified in logger.conf for the console channel, if it was requested by command line or asterisk.conf it just worked. This change causes Asterisk to always enable verbose in the console channel level mask. Verbose is displayed on consoles if requested by command line, option_verbose or 'core set verbose'. This also delays initialization of the logger until after threadstorage is initialized. Initializing too early can cause messages to be printed multiple times to the console (stdout). ASTERISK-26391 #close Change-Id: I52187d67c2fcb3efd5561bf04b3e5e23e5ee8a04
This commit is contained in:
@@ -4448,7 +4448,6 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
|
||||
check_init(ast_format_cache_init(), "Format Cache");
|
||||
check_init(ast_codec_builtin_init(), "Built-in Codecs");
|
||||
check_init(aco_init(), "Configuration Option Framework");
|
||||
check_init(init_logger(), "Logger");
|
||||
check_init(ast_bucket_init(), "Bucket API");
|
||||
check_init(stasis_init(), "Stasis");
|
||||
check_init(ast_stasis_system_init(), "Stasis system-level information");
|
||||
@@ -4478,6 +4477,7 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
|
||||
|
||||
threadstorage_init();
|
||||
|
||||
check_init(init_logger(), "Logger");
|
||||
check_init(ast_rtp_engine_init(), "RTP Engine");
|
||||
|
||||
ast_autoservice_init();
|
||||
|
Reference in New Issue
Block a user