Closed anarcher closed 5 years ago
I suppose that the reason is because reading a stack trace is inherently slow, so we don't want to slow down Sebak in production.
I suppose that the reason is because reading a stack trace is inherently slow, so we don't want to slow down Sebak in production.
Do you mean that now sebak in production is running info level?
And it's CallerFileHandler, not CallerStackHandler
. ( caller file handler has small cost than caller stack handler )
And Prometheus also is logging caller. It's a slow down in production?
As you know, info log level is quite small amount of logging then debugging level. I don't agree that performance things .
And it's CallerFileHandler, not CallerStackHandler
Oh sorry, I misread. This PR LGTM then.
And Prometheus also is logging caller. It's a slow down in production?
Yeah, stack traces are expensive to generate in any language.
@anarcher If there are no more issues, this PR can be merged :)
Github Issue
Background
Use
CallerFileHandler
with all log level.Solution
I have no reason that only logging
caller
when debugging level is enabled.For example
There is a log example from Prometheus with logfmt and caller.
Possible Drawbacks