Skip to content

Commit

Permalink
Remove logging of OpenSSL internal errors.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 1081cfb0efda59ac8bb08746b0b29fb1c39f299d
  • Loading branch information
levlam committed Aug 29, 2018
1 parent 2b72a74 commit 8079285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdnet/td/net/SslStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 8079285

Please sign in to comment.