From f170ed0507efb298485848f9956b70ab332736aa Mon Sep 17 00:00:00 2001 From: fwcd Date: Mon, 28 Aug 2023 19:42:47 +0200 Subject: [PATCH] Logging: Revert including timestamps in stdout pattern As per the discussion. Note that these can still be added dynamically via the `QT_MESSAGE_PATTERN` environment variable. This reverts commit aaadfd167182c6485359f5dde87f39df862c4425. --- src/util/logging.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/util/logging.cpp b/src/util/logging.cpp index f7166ebc15d0..6631829decbd 100644 --- a/src/util/logging.cpp +++ b/src/util/logging.cpp @@ -74,14 +74,11 @@ bool s_debugAssertBreak = false; // QT_MESSAGE_PATTERN="%{type} [{{threadname}}] %{function} %{message}" // TODO: Adjust the default format and messages and collect file and function info in release builds as well. -const QString kTimestampPattern = QStringLiteral("%{time h:mm:ss.zzz}"); const QString kThreadNamePattern = QStringLiteral("{{threadname}}"); -const QString kDefaultMessagePattern = kTimestampPattern + - QStringLiteral(" %{type} [") + kThreadNamePattern + - QStringLiteral("] %{message}"); +const QString kDefaultMessagePattern = QStringLiteral("%{type} [") + + kThreadNamePattern + QStringLiteral("] %{message}"); const QString kDefaultMessagePatternColor = - kTimestampPattern + QStringLiteral( " %{if-category}\033[35m %{category}:\033[35m%{endif}" "%{if-debug}\033[34m%{type}%{endif}"