aboutsummaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 11:23:49 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 11:23:49 +0100
commit4439d5c774d5ebf42aeb9fc9fed9b66403b77c91 (patch)
treeb866876032be13c59f7d2da504c07c41abb22626 /src/error.c
parentac6278feb7f4d16dad434a6eafefbecbe4ab0463 (diff)
downloadlibssh-4439d5c774d5ebf42aeb9fc9fed9b66403b77c91.tar.gz
libssh-4439d5c774d5ebf42aeb9fc9fed9b66403b77c91.tar.xz
libssh-4439d5c774d5ebf42aeb9fc9fed9b66403b77c91.zip
Log errors with ssh_log
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index f5bb1190..e2d02ce7 100644
--- a/src/error.c
+++ b/src/error.c
@@ -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);
}
/**