Skip to content

Commit

Permalink
Logging: Revert including timestamps in stdout pattern
Browse files Browse the repository at this point in the history
As per the discussion. Note that these can still be added dynamically
via the `QT_MESSAGE_PATTERN` environment variable.

This reverts commit aaadfd1.
  • Loading branch information
fwcd committed Aug 28, 2023
1 parent 478b8e8 commit f170ed0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/util/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f170ed0

Please sign in to comment.