diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 00:15:25 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 00:15:25 +0000 |
commit | 4d2dfd4b70a93c582362f1fadc8713aa45cebb98 (patch) | |
tree | 7df2cd8b8aea53ad01491cb9b4c60b0356457a02 /cdr | |
parent | 37ffe256c43c183194a4b38e36ee793179dde3d8 (diff) |
change a warning message to a debug message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31226 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r-- | cdr/cdr_radius.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cdr/cdr_radius.c b/cdr/cdr_radius.c index 1da21ed2d..9b40b1cf9 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; } |