mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 11:39:32 +02:00
core/logs: remove warnings
This commit is contained in:
parent
98cea10421
commit
0da3d1098f
32 changed files with 70 additions and 78 deletions
|
@ -41,13 +41,13 @@ restart:
|
|||
log.Ctx(ctx).Error().Err(err).Msg("terminal error")
|
||||
return err
|
||||
}
|
||||
log.Ctx(ctx).Warn().Msg(err.Error())
|
||||
log.Ctx(ctx).Error().Msg(err.Error())
|
||||
|
||||
backoff.Reset()
|
||||
backoff:
|
||||
for {
|
||||
interval := backoff.NextBackOff()
|
||||
log.Ctx(ctx).Warn().Msgf("backing off for %s...", interval.String())
|
||||
log.Ctx(ctx).Info().Msgf("backing off for %s...", interval.String())
|
||||
timer := time.NewTimer(interval)
|
||||
s := makeSelect(ctx, watches, name, timer.C, fn)
|
||||
next, err := s.Exec(ctx)
|
||||
|
@ -70,7 +70,7 @@ restart:
|
|||
func logNext(ctx context.Context, next next, err error) {
|
||||
evt := log.Ctx(ctx).Info()
|
||||
if err != nil {
|
||||
evt = log.Ctx(ctx).Warn().Err(err)
|
||||
evt = log.Ctx(ctx).Error().Err(err)
|
||||
}
|
||||
|
||||
switch next {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue