mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
core/logs: remove warnings (#5235)
* core/logs: remove warnings * switch to error
This commit is contained in:
parent
556b2e0d73
commit
d062f9d68d
32 changed files with 70 additions and 78 deletions
|
@ -78,7 +78,7 @@ func (r *healthCheckReporter) ReportOK(check health.Check, attr ...health.Attr)
|
|||
// ReportError implements health.Provider interface
|
||||
func (r *healthCheckReporter) ReportError(check health.Check, err error, attr ...health.Attr) {
|
||||
ctx := context.Background()
|
||||
log.Ctx(ctx).Warn().Str("check", string(check)).Err(err).Msg("health check error")
|
||||
log.Ctx(ctx).Error().Str("check", string(check)).Err(err).Msg("health check error")
|
||||
_, span := r.tracer.Start(ctx, string(check))
|
||||
span.SetStatus(codes.Error, err.Error())
|
||||
setAttributes(span, attr...)
|
||||
|
|
|
@ -95,7 +95,7 @@ func (srv *Telemetry) handleRequests(ctx context.Context) error {
|
|||
select {
|
||||
case requests <- req:
|
||||
default:
|
||||
log.Warn(ctx).Msg("dropping telemetry request")
|
||||
log.Error(ctx).Msg("dropping telemetry request")
|
||||
}
|
||||
}))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue