diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-05 04:04:55 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-05 04:04:55 +0000 |
commit | 7ad81915b7349a2ce6be77d51e10b02d64914b75 (patch) | |
tree | 5dcb6e4520bff8802ca3feb3834cd1b68642306b /logger.c | |
parent | cfc2b33d30b91a6f5d7eb38268711c0d9480ac73 (diff) |
Allow debug to be enabled on a per-file basis...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5143 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'logger.c')
-rwxr-xr-x | logger.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |