Remove logging of OpenSSL internal errors.

GitOrigin-RevId: 1081cfb0efda59ac8bb08746b0b29fb1c39f299d
This commit is contained in:
levlam 2018-08-29 15:35:05 +03:00
parent 2b72a74ab7
commit 8079285e5c

View File

@ -149,10 +149,10 @@ Status create_openssl_error(int code, Slice message) {
char error_buf[1024];
ERR_error_string_n(error_code, error_buf, sizeof(error_buf));
Slice error(error_buf, std::strlen(error_buf));
LOG_IF(ERROR, ends_with(error, "internal error")) << "OpenSSL internal error: " << error;
sb << "{" << error << "}";
}
LOG_IF(ERROR, sb.is_error()) << "OpenSSL error buffer overflow";
LOG(DEBUG) << sb.as_cslice();
return Status::Error(code, sb.as_cslice());
}