mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
sftpd: set failed connection loglevel to debug (#152)
This commit is contained in:
committed by
GitHub
parent
91dcc349de
commit
9a15a54885
@@ -270,7 +270,7 @@ func (c Configuration) AcceptInboundConnection(conn net.Conn, config *ssh.Server
|
|||||||
}
|
}
|
||||||
sconn, chans, reqs, err := ssh.NewServerConn(conn, config)
|
sconn, chans, reqs, err := ssh.NewServerConn(conn, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Warn(logSender, "", "failed to accept an incoming connection: %v", err)
|
logger.Debug(logSender, "", "failed to accept an incoming connection: %v", err)
|
||||||
if _, ok := err.(*ssh.ServerAuthError); !ok {
|
if _, ok := err.(*ssh.ServerAuthError); !ok {
|
||||||
logger.ConnectionFailedLog("", utils.GetIPFromRemoteAddress(remoteAddr.String()), "no_auth_tryed", err.Error())
|
logger.ConnectionFailedLog("", utils.GetIPFromRemoteAddress(remoteAddr.String()), "no_auth_tryed", err.Error())
|
||||||
metrics.AddNoAuthTryed()
|
metrics.AddNoAuthTryed()
|
||||||
|
|||||||
Reference in New Issue
Block a user