mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 07:19:16 +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
|
@ -75,7 +75,7 @@ func RecordEnvoyOverloadActionState(ctx context.Context, tags EnvoyOverloadActio
|
|||
EnvoyOverloadActionState.M(state),
|
||||
)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ func RecordEnvoyOverloadActionThreshold(ctx context.Context, actionName string,
|
|||
EnvoyOverloadActionThreshold.M(threshold),
|
||||
)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,6 @@ func RecordEnvoyCgroupMemorySaturation(ctx context.Context, cgroup string, perce
|
|||
EnvoyCgroupMemorySaturation.M(percent),
|
||||
)
|
||||
if err != nil {
|
||||
log.Error(ctx).Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
log.Ctx(ctx).Error().Err(err).Msg("internal/telemetry/metrics: failed to record")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue