diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2022-05-21 09:04:01 +0400 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2022-05-21 09:06:02 +0400 |
commit | 44b3869eb6d0e623636892f73e07e40ae55df446 (patch) | |
tree | 27e47d8a0cf6278f77848b12eb3c88dc2a68c22f | |
parent | accaf432283131f3b0aa535654807f8adfb4d908 (diff) | |
download | gitlab-shell-44b3869eb6d0e623636892f73e07e40ae55df446.tar.gz |
Downgrade auth EOF messages from warning to debug
The errors happen when a client closes a connection on handshake
They can be ignored to avoid noise
-rw-r--r-- | internal/sshd/sshd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/sshd/sshd.go b/internal/sshd/sshd.go index 80e87e0..dbb8709 100644 --- a/internal/sshd/sshd.go +++ b/internal/sshd/sshd.go @@ -44,7 +44,7 @@ func logSSHInitError(ctxlog *logrus.Entry, err error) { logger := ctxlog.WithError(err) - if strings.Contains(err.Error(), "no common algorithm for host key") { + if strings.Contains(err.Error(), "no common algorithm for host key") || err.Error() == "EOF" { logger.Debug(msg) } else { logger.Warn(msg) |