mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
logging: remove ctx from global log methods (#5337)
* log: remove warn * log: update debug * log: update info * remove level, log * remove contextLogger function
This commit is contained in:
parent
1ccaf1b22b
commit
d2c14cd6d2
53 changed files with 150 additions and 198 deletions
|
@ -95,7 +95,7 @@ func (mgr *TraceManager) OnConfigChange(ctx context.Context, cfg *Config) {
|
|||
}
|
||||
|
||||
if reflect.DeepEqual(traceOpts, mgr.traceOpts) {
|
||||
log.Debug(ctx).Msg("no change detected in trace options")
|
||||
log.Ctx(ctx).Debug().Msg("no change detected in trace options")
|
||||
return
|
||||
}
|
||||
mgr.traceOpts = traceOpts
|
||||
|
@ -109,7 +109,7 @@ func (mgr *TraceManager) OnConfigChange(ctx context.Context, cfg *Config) {
|
|||
return
|
||||
}
|
||||
|
||||
log.Info(ctx).Interface("options", traceOpts).Msg("trace: starting exporter")
|
||||
log.Ctx(ctx).Info().Interface("options", traceOpts).Msg("trace: starting exporter")
|
||||
|
||||
mgr.provider, err = trace.GetProvider(traceOpts)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue