]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
cdr.c: Make turning on CDR debug a one step process instead of two.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 9 Oct 2014 16:34:55 +0000 (16:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 9 Oct 2014 16:34:55 +0000 (16:34 +0000)
Now "cdr set debug on" doesn't also require "core set verbose 1" to see
CDR debug output.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@424941 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 42633da79f1abda147e9551a2e36eb1eecf096f6..f6d6e36d7d669fc5dd7342c700494e98d794a3ff 100644 (file)
@@ -215,9 +215,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #define CDR_DEBUG(mod_cfg, fmt, ...) \
        do { \
-       if (ast_test_flag(&(mod_cfg)->general->settings, CDR_DEBUG)) { \
-               ast_verb(1, (fmt), ##__VA_ARGS__); \
-       } } while (0)
+               if (ast_test_flag(&(mod_cfg)->general->settings, CDR_DEBUG)) { \
+                       ast_verbose((fmt), ##__VA_ARGS__); \
+               } \
+       } while (0)
 
 static void cdr_detach(struct ast_cdr *cdr);
 static void cdr_submit_batch(int shutdown);