[Freeswitch-trunk] [commit] r6409 - in freeswitch/trunk: conf/autoload_configs src/mod/loggers/mod_syslog

Freeswitch SVN mikej at freeswitch.org
Mon Nov 26 22:37:05 EST 2007


Author: mikej
Date: Mon Nov 26 22:37:05 2007
New Revision: 6409

Modified:
   freeswitch/trunk/conf/autoload_configs/syslog.conf.xml
   freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c

Log:
pass loglevel and remove unused params (FSCORE-33)

Modified: freeswitch/trunk/conf/autoload_configs/syslog.conf.xml
==============================================================================
--- freeswitch/trunk/conf/autoload_configs/syslog.conf.xml	(original)
+++ freeswitch/trunk/conf/autoload_configs/syslog.conf.xml	Mon Nov 26 22:37:05 2007
@@ -10,8 +10,6 @@
   <!-- debug   - debug-level message -->
   <settings>
     <param name="ident" value="freeswitch"/>
-    <param name="facility" value="user"/>
     <param name="format" value="${time} - ${message}"/>
-    <param name="level" value="debug,info,warning-alert"/>
   </settings>
 </configuration>

Modified: freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c	Mon Nov 26 22:37:05 2007
@@ -94,26 +94,26 @@
 	snprintf(line_no, sizeof(line_no), "%d", node->line);
 	message = switch_string_replace(message, "${line}", line_no);
 
-	case (level) {
-		SWITCH_LOG_DEBUG:
+	switch (level) {
+		case SWITCH_LOG_DEBUG:
 			syslog_level = LOG_DEBUG;
 			break;
-		SWITCH_LOG_INFO:
+		case SWITCH_LOG_INFO:
 			syslog_level = LOG_INFO;
 			break;
-		SWITCH_LOG_NOTICE:
+		case SWITCH_LOG_NOTICE:
 			syslog_level = LOG_NOTICE;
 			break;
-		SWITCH_LOG_WARNING:
+		case SWITCH_LOG_WARNING:
 			syslog_level = LOG_WARNING;
 			break;
-		SWITCH_LOG_ERROR:
+		case SWITCH_LOG_ERROR:
 			syslog_level = LOG_ERR;
 			break;
-		SWITCH_LOG_CRIT:
+		case SWITCH_LOG_CRIT:
 			syslog_level = LOG_CRIT;
 			break;
-		SWITCH_LOG_ALERT:
+		case SWITCH_LOG_ALERT:
 			syslog_level = LOG_ALERT;
 			break;
 		default:



More information about the Freeswitch-trunk mailing list