From: Timo Sirainen Date: Sun, 28 Feb 2016 17:51:54 +0000 (+0200) Subject: lib-ssl-iostream: Log all SSL info lines with debug-level. X-Git-Tag: 2.2.22.rc1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20905b89a05e27f0d1c6606a6b49b33dc23a1323;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: Log all SSL info lines with debug-level. They're not logged at all if verbose=FALSE, so they're really debug messages. --- diff --git a/src/lib-ssl-iostream/iostream-openssl.c b/src/lib-ssl-iostream/iostream-openssl.c index df89a96d18..5e61bcae40 100644 --- a/src/lib-ssl-iostream/iostream-openssl.c +++ b/src/lib-ssl-iostream/iostream-openssl.c @@ -29,15 +29,15 @@ static void openssl_info_callback(const SSL *ssl, int where, int ret) SSL_alert_desc_string_long(ret)); break; default: - i_warning("%sSSL alert: where=0x%x, ret=%d: %s %s", - ssl_io->log_prefix, where, ret, - SSL_alert_type_string_long(ret), - SSL_alert_desc_string_long(ret)); + i_debug("%sSSL alert: where=0x%x, ret=%d: %s %s", + ssl_io->log_prefix, where, ret, + SSL_alert_type_string_long(ret), + SSL_alert_desc_string_long(ret)); break; } } else if (ret == 0) { - i_warning("%sSSL failed: where=0x%x: %s", - ssl_io->log_prefix, where, SSL_state_string_long(ssl)); + i_debug("%sSSL failed: where=0x%x: %s", + ssl_io->log_prefix, where, SSL_state_string_long(ssl)); } else { i_debug("%sSSL: where=0x%x, ret=%d: %s", ssl_io->log_prefix, where, ret,