From: Russell Bryant Date: Thu, 1 Jun 2006 00:15:25 +0000 (+0000) Subject: change a warning message to a debug message X-Git-Tag: 1.4.0-beta1~1128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c1284633d0e0b7a165164946af16ff993b10ee;p=thirdparty%2Fasterisk.git change a warning message to a debug message git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31226 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cdr/cdr_radius.c b/cdr/cdr_radius.c index 1da21ed2da..9b40b1cf99 100644 --- a/cdr/cdr_radius.c +++ b/cdr/cdr_radius.c @@ -47,6 +47,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Rev$") #include "asterisk/module.h" #include "asterisk/logger.h" #include "asterisk/utils.h" +#include "asterisk/options.h" /*! ISO 8601 standard format */ #define DATE_FORMAT "%Y-%m-%d %T %z" @@ -216,7 +217,8 @@ static int radius_log(struct ast_cdr *cdr) VALUE_PAIR *send = NULL; if (build_radius_record(&send, cdr)) { - ast_log(LOG_WARNING, "Unable to create RADIUS record. CDR not recorded!\n"); + if (option_debug) + ast_log(LOG_DEBUG, "Unable to create RADIUS record. CDR not recorded!\n"); return result; }