mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Verbose logging discrepancies
Refactored cases where a combination of ast_verbose/options_verbose were present. Also in general tried to eliminate, in as many places as possible, where the options_verbose global variable was being used. Refactored the way local and remote consoles handle verbose message logging in an attempt to solve the various discrepancies that sometimes would show between the two. (closes issue AST-1193) Reported by: Guenther Kelleter Review: https://reviewboard.asterisk.org/r/2798/ ........ Merged revisions 397948 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@397958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1552,7 +1552,11 @@ void ast_log(int level, const char *file, int line, const char *function, const
|
||||
callid = ast_read_threadstorage_callid();
|
||||
|
||||
va_start(ap, fmt);
|
||||
ast_log_full(level, file, line, function, callid, fmt, ap);
|
||||
if (level == __LOG_VERBOSE) {
|
||||
__ast_verbose_ap(file, line, function, 0, callid, fmt, ap);
|
||||
} else {
|
||||
ast_log_full(level, file, line, function, callid, fmt, ap);
|
||||
}
|
||||
va_end(ap);
|
||||
|
||||
if (callid) {
|
||||
@@ -1826,4 +1830,3 @@ void ast_logger_unregister_level(const char *name)
|
||||
AST_RWLIST_UNLOCK(&logchannels);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user