Skip to content

Commit 0994e68

Browse files
knopers8teo
authored andcommitted
Enable trace logs when core is run with --veryVerbose
The already existing infrastructure can map logrus' TraceLevel to InfoLogger's Debug severity and Trace level. Also, Trace logs are enabled only if the core is ran with --veryVerbose, however, they are not propagated to InfoLogger. This commit enables the propagation of Trace logs to InfoLogger. I expect the impact to be minimal, as we run with --veryVerbose only when really needed and mostly in development setups. It is not aimed to be the default mode to operate with. This commit should have no effect on the logs from executor, as it is always ran with Debug level.
1 parent 101f12d commit 0994e68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/logger/infologger/directhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (h *DirectHook) Levels() []logrus.Level {
171171
logrus.WarnLevel,
172172
logrus.InfoLevel,
173173
logrus.DebugLevel,
174-
// logrus.TraceLevel,
174+
logrus.TraceLevel,
175175
}
176176
}
177177

0 commit comments

Comments
 (0)