]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorBrian West <brian@freeswitch.org>
Wed, 12 Apr 2006 18:01:27 +0000 (18:01 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 12 Apr 2006 18:01:27 +0000 (18:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1129 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/loggers/mod_console/mod_console.c
src/switch_log.c

index 051dde3f3ce84a1d6114ee989244056a2f31b468..b46e6257871307b3e42822c11077fc930a0880ed 100644 (file)
@@ -89,7 +89,7 @@ static switch_status switch_console_logger(const switch_log_node *node, switch_l
 
                                if (!lookup && all_level == -1) {
                                        if ((lookup = switch_core_hash_find(log_hash, "all"))) {
-                                               all_level = (int) switch_log_str2level(lookup);
+                                               all_level = (int8_t) switch_log_str2level(lookup);
                                        } else {
                                                all_level = -2;
                                        }
index 0cfdece4d420794979f4c492988d66fb0d1e129b..d763c6cbe6fa512fcc7bf499bfa784d18a255119 100644 (file)
@@ -205,7 +205,9 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file,
                if (channel == SWITCH_CHANNEL_ID_LOG_CLEAN) {
                        content = data;
                } else {
-                       content = strchr(data, 128);
+                       if ((content = strchr(data, 128))) {
+                               *content = ' ';
+                       }
                }
 
                if (channel == SWITCH_CHANNEL_ID_EVENT) {