[asterisk-commits] trunk r31226 - /trunk/cdr/cdr_radius.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 31 17:15:26 MST 2006


Author: russell
Date: Wed May 31 19:15:25 2006
New Revision: 31226

URL: http://svn.digium.com/view/asterisk?rev=31226&view=rev
Log:
change a warning message to a debug message

Modified:
    trunk/cdr/cdr_radius.c

Modified: trunk/cdr/cdr_radius.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_radius.c?rev=31226&r1=31225&r2=31226&view=diff
==============================================================================
--- trunk/cdr/cdr_radius.c (original)
+++ trunk/cdr/cdr_radius.c Wed May 31 19:15:25 2006
@@ -47,6 +47,7 @@
 #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 @@
 	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;
 	}
 	



More information about the asterisk-commits mailing list