mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +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
|
@ -313,7 +313,7 @@ func RecordIdentityManagerSessionRefresh(ctx context.Context, err error) {
|
|||
// SetDBConfigInfo records status, databroker version and error count while parsing
|
||||
// the configuration from a databroker
|
||||
func SetDBConfigInfo(ctx context.Context, service, configID string, version uint64, errCount int64) {
|
||||
log.Info(ctx).
|
||||
log.Ctx(ctx).Info().
|
||||
Str("service", service).
|
||||
Str("config_id", configID).
|
||||
Uint64("version", version).
|
||||
|
@ -374,7 +374,7 @@ func SetConfigInfo(ctx context.Context, service, configName string, checksum uin
|
|||
} else {
|
||||
stats.Record(context.Background(), configLastReloadSuccess.M(0))
|
||||
}
|
||||
log.Info(ctx).
|
||||
log.Ctx(ctx).Info().
|
||||
Str("service", service).
|
||||
Str("config", configName).
|
||||
Str("checksum", fmt.Sprintf("%x", checksum)).
|
||||
|
|
|
@ -74,7 +74,7 @@ func GetProvider(opts *TracingOptions) (Provider, error) {
|
|||
}
|
||||
octrace.ApplyConfig(octrace.Config{DefaultSampler: octrace.ProbabilitySampler(opts.SampleRate)})
|
||||
|
||||
log.Debug(context.TODO()).Interface("Opts", opts).Msg("telemetry/trace: provider created")
|
||||
log.Debug().Interface("Opts", opts).Msg("telemetry/trace: provider created")
|
||||
return provider, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue