]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build
authorMichael Jerris <mike@jerris.com>
Sat, 26 Jan 2008 04:07:48 +0000 (04:07 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 26 Jan 2008 04:07:48 +0000 (04:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7367 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/loggers/mod_console/mod_console.c

index 25039f29d0253e5b56638b8fcf14b60ac0cb3a84..d2e11477ee9f6eb7e7f85617a120903dedb406ec 100644 (file)
@@ -190,11 +190,15 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
                        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;
                        }
                }