diff options
| author | Stefan Boberg <[email protected]> | 2026-03-16 23:29:38 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-03-16 23:29:38 +0100 |
| commit | f155b41af6f20c3a09189315621bf3b7794d89d1 (patch) | |
| tree | 13e90d5b9a8b3b3b93b4dff00dede488776a43a4 /src/zencore | |
| parent | adjusted ZenServerInstance::OnServerReady() to be more tolerant wrt timing (diff) | |
| parent | Add sequence numbers to log stream protocol and tests for drop detection (diff) | |
| download | zen-sb/sessionize.tar.xz zen-sb/sessionize.zip | |
Merge branch 'sb/sessionize' of ssh://arn-wd-l1704.localdomain:2222/ue-foundation/zen into sb/sessionizesb/sessionize
Diffstat (limited to 'src/zencore')
| -rw-r--r-- | src/zencore/include/zencore/logging/logmsg.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/zencore/include/zencore/logging/logmsg.h b/src/zencore/include/zencore/logging/logmsg.h index 1d8b6b1b7..45b0e38fb 100644 --- a/src/zencore/include/zencore/logging/logmsg.h +++ b/src/zencore/include/zencore/logging/logmsg.h @@ -44,22 +44,14 @@ struct LogMessage mutable size_t ColorRangeEnd = 0; private: - static constexpr LogPoint s_DefaultPoints[LogLevelCount] = { - {{}, Trace, {}}, - {{}, Debug, {}}, - {{}, Info, {}}, - {{}, Warn, {}}, - {{}, Err, {}}, - {{}, Critical, {}}, - {{}, Off, {}}, - }; + static constexpr LogPoint s_DefaultPoint{{}, Off, {}}; std::string_view m_LoggerName; LogLevel m_Level = Off; std::chrono::system_clock::time_point m_Time; SourceLocation m_Source; std::string_view m_Payload; - const LogPoint* m_Point = &s_DefaultPoints[Off]; + const LogPoint* m_Point = &s_DefaultPoint; int m_ThreadId = 0; }; |