[Freeswitch-svn] [commit] r6536 - in freeswitch/trunk/src/mod/loggers: mod_console mod_logfile

Freeswitch SVN mikej at freeswitch.org
Thu Dec 6 08:50:15 EST 2007


Author: mikej
Date: Thu Dec  6 08:50:14 2007
New Revision: 6536

Modified:
   freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
   freeswitch/trunk/src/mod/loggers/mod_logfile/mod_logfile.c

Log:
fix build, remove nag message to stderr when in -nc

Modified: freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	Thu Dec  6 08:50:14 2007
@@ -74,7 +74,7 @@
 
 	if (cumlative) {
 		uint32_t l = switch_log_str2level(val);
-		int i;
+		uint32_t i;
 
 		assert(l < 10);
 		
@@ -161,7 +161,7 @@
 
 	if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
         size_t mask = 0;
-        int ok = 0;
+        size_t ok = 0;
     
         ok = switch_log_check_mask(all_level, level);
         
@@ -190,9 +190,6 @@
 				fprintf(handle, "%s", node->data);
 			}
 		}
-	} else {
-		fprintf(stderr, "HELP I HAVE NO CONSOLE TO LOG TO!\n");
-		fflush(stderr);
 	}
 
 	return SWITCH_STATUS_SUCCESS;

Modified: freeswitch/trunk/src/mod/loggers/mod_logfile/mod_logfile.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_logfile/mod_logfile.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_logfile/mod_logfile.c	Thu Dec  6 08:50:14 2007
@@ -214,7 +214,7 @@
     
     for (hi = switch_hash_first(NULL, profile_hash); hi; hi = switch_hash_next(hi)) {
         size_t mask = 0;
-        int ok = 0;
+        size_t ok = 0;
     
         switch_hash_this(hi, &var, NULL, &val);
         profile = val;



More information about the Freeswitch-svn mailing list