diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index 051dde3f3c..b46e625787 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -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; } diff --git a/src/switch_log.c b/src/switch_log.c index 0cfdece4d4..d763c6cbe6 100644 --- a/src/switch_log.c +++ b/src/switch_log.c @@ -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) {