mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
This change makes it so that logs will report the correct source of verbose messages.
Until this change, all verbose messages in Asterisk's log files reported logger.c as the source of the message. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1156,7 +1156,7 @@ void ast_backtrace(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void ast_verbose(const char *fmt, ...)
|
||||
void __ast_verbose(const char *file, int line, const char *func, const char *fmt, ...)
|
||||
{
|
||||
struct logmsg *logmsg = NULL;
|
||||
struct ast_str *buf = NULL;
|
||||
@@ -1198,7 +1198,7 @@ void ast_verbose(const char *fmt, ...)
|
||||
|
||||
strcpy(logmsg->str, buf->str);
|
||||
|
||||
ast_log(LOG_VERBOSE, "%s", logmsg->str + 1);
|
||||
ast_log(__LOG_VERBOSE, file, line, func, "%s", logmsg->str + 1);
|
||||
|
||||
/* Set type */
|
||||
logmsg->type = LOGMSG_VERBOSE;
|
||||
|
Reference in New Issue
Block a user