diff options
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index ada32938e7..e83fc3f5ac 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -531,7 +531,8 @@ tor_tls_handshake(tor_tls_t *tls) } r = tor_tls_get_error(tls,r,0, "handshaking", LOG_INFO); if (ERR_peek_error() != 0) { - tls_log_errors(LOG_WARN, "handshaking"); + tls_log_errors(tls->isServer ? LOG_PROTOCOL_WARN : LOG_WARN, + "handshaking"); return TOR_TLS_ERROR; } if (r == TOR_TLS_DONE) { |