[Freeswitch-svn] [commit] r7367 - freeswitch/trunk/src/mod/loggers/mod_console

Freeswitch SVN mikej at freeswitch.org
Fri Jan 25 23:07:48 EST 2008


Author: mikej
Date: Fri Jan 25 23:07:48 2008
New Revision: 7367

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

Log:
fix windows build

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	Fri Jan 25 23:07:48 2008
@@ -190,11 +190,15 @@
 			int aok = can_write(handle, 5);
 			if (aok) {
 				const char *msg = "Failed to write to the console! Logging disabled! RE-enable with the 'console loglevel' command\n";
+#ifdef WIN32
+				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
+#else
 				if (COLORIZE) {
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s%s%s",  COLORS[1], msg, SWITCH_SEQ_DEFAULT_COLOR);
 				} else {
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "%s", msg);
 				}
+#endif
 				failed_write = 0;
 			}
 		}



More information about the Freeswitch-svn mailing list