mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Allow debug to be enabled on a per-file basis...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
logger.c
4
logger.c
@@ -564,6 +564,10 @@ void ast_log(int level, const char *file, int line, const char *function, const
|
||||
/* Ignore anything that never gets logged anywhere */
|
||||
if (!(global_logmask & (1 << level)))
|
||||
return;
|
||||
|
||||
/* Ignore anything other than the currently debugged file if there is one */
|
||||
if ((level == __LOG_DEBUG) && !ast_strlen_zero(debug_filename) && strcasecmp(debug_filename, file))
|
||||
return;
|
||||
|
||||
/* begin critical section */
|
||||
ast_mutex_lock(&loglock);
|
||||
|
Reference in New Issue
Block a user