From 34e4bfdfcde63358c39628dcf46ce5a9b361352d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 29 Aug 2023 21:16:28 +1000 Subject: [PATCH] Log: Don't colourize timestamps --- src/common/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index 105e88a26..a0723a7b2 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -130,12 +130,12 @@ static int FormatLogMessageForDisplay(char* buffer, size_t buffer_size, const ch if (level <= LOGLEVEL_PERF) { - return std::snprintf(buffer, buffer_size, "%s[%10.4f] %c(%s): %s%s%s", color_start, message_time, + return std::snprintf(buffer, buffer_size, "[%10.4f] %s%c(%s): %s%s%s", message_time, color_start, s_log_level_characters[level], functionName, message, color_end, message_end); } else { - return std::snprintf(buffer, buffer_size, "%s[%10.4f] %c/%s: %s%s%s", color_start, message_time, + return std::snprintf(buffer, buffer_size, "[%10.4f] %s%c/%s: %s%s%s", message_time, color_start, s_log_level_characters[level], channelName, message, color_end, message_end); } }