mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
Log errors with ssh_log
This commit is contained in:
@@ -54,6 +54,7 @@ void ssh_set_error(void *error, int code, const char *descr, ...) {
|
||||
vsnprintf(err->error_buffer, ERROR_BUFFERLEN, descr, va);
|
||||
va_end(va);
|
||||
err->error_code = code;
|
||||
ssh_log(error,SSH_LOG_RARE,"Error : %s",err->error_buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user