[UPDATED] Elevate TLS error logs from DBG to ERR

The one for route was already changed. Changing the one for
client handshake and TLS timeout.

Resolves #513

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2018-06-22 09:33:07 -06:00
parent dd59bdf285
commit 06f74a0e3a

View File

@@ -784,7 +784,7 @@ func (s *Server) createClient(conn net.Conn) *client {
// Force handshake
c.mu.Unlock()
if err := conn.Handshake(); err != nil {
c.Debugf("TLS handshake error: %v", err)
c.Errorf("TLS handshake error: %v", err)
c.sendErr("Secure Connection - TLS Required")
c.closeConnection()
return nil
@@ -899,7 +899,7 @@ func tlsTimeout(c *client, conn *tls.Conn) {
}
cs := conn.ConnectionState()
if !cs.HandshakeComplete {
c.Debugf("TLS handshake timeout")
c.Errorf("TLS handshake timeout")
c.sendErr("Secure Connection - TLS Required")
c.closeConnection()
}