Skip to content

Commit

Permalink
Merge pull request #690 from nats-io/tls_trace
Browse files Browse the repository at this point in the history
[UPDATED] Elevate TLS error logs from DBG to ERR
  • Loading branch information
kozlovic committed Jun 22, 2018
2 parents dd59bdf + 06f74a0 commit e155332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit e155332

Please sign in to comment.