1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

error: Fix logging in ssh_set_error().

This commit is contained in:
Andreas Schneider
2013-07-21 11:26:55 +02:00
parent f3e09612b3
commit 08c31ccf31

View File

@@ -61,9 +61,11 @@ void _ssh_set_error(void *error,
va_end(va);
err->error.error_code = code;
ssh_log_function(SSH_LOG_WARN,
function,
err->error.error_buffer);
if (ssh_get_log_level() >= SSH_LOG_WARN) {
ssh_log_function(SSH_LOG_WARN,
function,
err->error.error_buffer);
}
}
/**