Merged revisions 48152 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 30 Nov 2006 18:49:59 +0000 (18:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 30 Nov 2006 18:49:59 +0000 (18:49 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48152 | file | 2006-11-30 13:47:40 -0500 (Thu, 30 Nov 2006) | 10 lines

Merged revisions 48151 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48151 | file | 2006-11-30 13:42:45 -0500 (Thu, 30 Nov 2006) | 2 lines

Print certain CDR messages out at the NOTICE level versus WARNING since they can occur when used with the CDR applications and are perfectly fine. (issue #8367 reported by dartvader)

........

................

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

main/cdr.c

index 3e85b05..309d73c 100644 (file)
@@ -404,14 +404,14 @@ void ast_cdr_free_vars(struct ast_cdr *cdr, int recur)
 static void check_post(struct ast_cdr *cdr)
 {
        if (ast_test_flag(cdr, AST_CDR_FLAG_POSTED))
-               ast_log(LOG_WARNING, "CDR on channel '%s' already posted\n", S_OR(cdr->channel, "<unknown>"));
+               ast_log(LOG_NOTICE, "CDR on channel '%s' already posted\n", S_OR(cdr->channel, "<unknown>"));
 }
 
 /*! \brief  print a warning if cdr already started */
 static void check_start(struct ast_cdr *cdr)
 {
        if (!ast_tvzero(cdr->start))
-               ast_log(LOG_WARNING, "CDR on channel '%s' already started\n", S_OR(cdr->channel, "<unknown>"));
+               ast_log(LOG_NOTICE, "CDR on channel '%s' already started\n", S_OR(cdr->channel, "<unknown>"));
 }
 
 void ast_cdr_free(struct ast_cdr *cdr)
@@ -421,11 +421,11 @@ void ast_cdr_free(struct ast_cdr *cdr)
                struct ast_cdr *next = cdr->next;
                char *chan = S_OR(cdr->channel, "<unknown>");
                if (!ast_test_flag(cdr, AST_CDR_FLAG_POSTED) && !ast_test_flag(cdr, AST_CDR_FLAG_POST_DISABLED))
-                       ast_log(LOG_WARNING, "CDR on channel '%s' not posted\n", chan);
+                       ast_log(LOG_NOTICE, "CDR on channel '%s' not posted\n", chan);
                if (ast_tvzero(cdr->end))
-                       ast_log(LOG_WARNING, "CDR on channel '%s' lacks end\n", chan);
+                       ast_log(LOG_NOTICE, "CDR on channel '%s' lacks end\n", chan);
                if (ast_tvzero(cdr->start))
-                       ast_log(LOG_WARNING, "CDR on channel '%s' lacks start\n", chan);
+                       ast_log(LOG_NOTICE, "CDR on channel '%s' lacks start\n", chan);
 
                ast_cdr_free_vars(cdr, 0);
                free(cdr);