diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-03 10:09:01 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-03 10:09:01 -0500 |
commit | af288f5eff780d1d2d35c6973e66954c6f69c6d2 (patch) | |
tree | 8c53f30b12bd3c94944134d12af3e8eb58f77b29 | |
parent | b4e511c41b26933ea9d3f0d487765f7a02e619a9 (diff) | |
parent | d7e47c88b20b825f086658c5790ca3915c4d9bcd (diff) |
Merge "logger: Bring back ability to turn debug on by source file" into 15
-rw-r--r-- | include/asterisk/logger.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 849f986b3..8b1e5fe01 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -429,7 +429,9 @@ void ast_callid_strnprint(char *buffer, size_t buffer_size, ast_callid callid); #define DEBUG_ATLEAST(level) \ (option_debug >= (level) \ - || (ast_opt_dbg_module && (int)ast_debug_get_by_module(AST_MODULE) >= (level))) + || (ast_opt_dbg_module \ + && ((int)ast_debug_get_by_module(AST_MODULE) >= (level) \ + || (int)ast_debug_get_by_module(__FILE__) >= (level)))) /*! * \brief Log a DEBUG message |