mirror of
https://github.com/kakwa/uts-server
synced 2025-01-10 13:44:29 +01:00
better logging for OpenSSL errors
This commit is contained in:
parent
3cb7f920fe
commit
e6e9faf184
@ -280,8 +280,12 @@ end:
|
|||||||
while ((err_code = ERR_get_error())) {
|
while ((err_code = ERR_get_error())) {
|
||||||
if (err_code_prev != err_code) {
|
if (err_code_prev != err_code) {
|
||||||
ERR_load_TS_strings();
|
ERR_load_TS_strings();
|
||||||
uts_logger(ct, LOG_ERR, "openssl exception: '%s'",
|
uts_logger(ct, LOG_DEBUG, "OpenSSL exception: '%s'",
|
||||||
ERR_error_string(err_code, NULL));
|
ERR_error_string(err_code, NULL));
|
||||||
|
uts_logger(ct, LOG_ERR, "error '%s' in component '%s'",
|
||||||
|
ERR_reason_error_string(err_code),
|
||||||
|
ERR_lib_error_string(err_code));
|
||||||
|
|
||||||
// printf("%lu\n", err_code, NULL);
|
// printf("%lu\n", err_code, NULL);
|
||||||
// printf("%s\n", ERR_reason_error_string(err_code));
|
// printf("%s\n", ERR_reason_error_string(err_code));
|
||||||
// printf("%s\n", ERR_func_error_string(err_code));
|
// printf("%s\n", ERR_func_error_string(err_code));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user