mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
Change level of peeking first byte error log to DEBUG for Postgres
This commit is contained in:
parent
b7b4dd9554
commit
fdce8c604a
@ -29,7 +29,7 @@ func isPostgres(br *bufio.Reader) (bool, error) {
|
||||
if err != nil {
|
||||
var opErr *net.OpError
|
||||
if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || !opErr.Timeout()) {
|
||||
log.Error().Err(err).Msg("Error while Peeking first byte")
|
||||
log.Debug().Err(err).Msg("Error while peeking first bytes")
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
|
@ -364,7 +364,7 @@ func clientHelloInfo(br *bufio.Reader) (*clientHello, error) {
|
||||
if err != nil {
|
||||
var opErr *net.OpError
|
||||
if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || !opErr.Timeout()) {
|
||||
log.Debug().Err(err).Msg("Error while Peeking first byte")
|
||||
log.Debug().Err(err).Msg("Error while peeking first byte")
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user