mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Merge pull request #690 from nats-io/tls_trace
[UPDATED] Elevate TLS error logs from DBG to ERR
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user