You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Problems:
1. We can't reassign the global logger variable. It's known `zerolog`
limitation.
2. We have a global logger.
3. We read our logs in the management console. This is for stats
gathering. Meanwhile, the management console uses the same logger to log
its messages.
4. Tests wait some time for stats to settle.
This PR disables assertions regarding management console stats. This is
a temporary solution till we rethink logging.
// We can't reassign global logger, it will lead to "race condition" in tests. It's known issue with zerolog.
147
+
// https://github.com/rs/zerolog/issues/242
148
+
149
+
iftestLoggerInitialized {
150
+
// we do return a fresh channel here, it will break the stats gathering in the console
151
+
// see TestConsoleStatsBasedOnLogs usage in the tests
152
+
returnmake(chanLogWithLevel, 50000)
153
+
}
154
+
141
155
zerolog.TimeFieldFormat=time.RFC3339Nano// without this we don't have milliseconds timestamp precision
142
156
logChannel:=make(chanLogWithLevel, 50000) // small number like 5 or 10 made entire Quesma totally unresponsive during the few seconds where Kibana spams with messages
0 commit comments