mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 07:50:26 +02:00
core/logging: change log.Error function (#5251)
* core/logging: change log.Error function * use request id
This commit is contained in:
parent
97bf5edc54
commit
dad954ae16
66 changed files with 163 additions and 166 deletions
|
@ -90,7 +90,7 @@ func (mgr *TraceManager) OnConfigChange(ctx context.Context, cfg *Config) {
|
|||
|
||||
traceOpts, err := NewTracingOptions(cfg.Options)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("trace: failed to build tracing options")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("trace: failed to build tracing options")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -113,13 +113,13 @@ func (mgr *TraceManager) OnConfigChange(ctx context.Context, cfg *Config) {
|
|||
|
||||
mgr.provider, err = trace.GetProvider(traceOpts)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("trace: failed to register exporter")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("trace: failed to register exporter")
|
||||
return
|
||||
}
|
||||
|
||||
err = mgr.provider.Register(traceOpts)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("trace: failed to register exporter")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("trace: failed to register exporter")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue