Decrease log level for client related error

This commit is contained in:
Sylvain Rabot 2020-02-10 18:54:05 +01:00 committed by GitHub
parent aa21351d0d
commit 8988c8f9af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ func clientHelloServerName(br *bufio.Reader) (string, bool, string, error) {
if err != nil {
opErr, ok := err.(*net.OpError)
if err != io.EOF && (!ok || !opErr.Timeout()) {
log.WithoutContext().Errorf("Error while Peeking first byte: %s", err)
log.WithoutContext().Debugf("Error while Peeking first byte: %s", err)
}
return "", false, "", err
}