aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-11-12 12:52:05 +0100
committerAndreas Schneider <mail@cynapses.org>2009-11-12 12:52:05 +0100
commit3e90a11599d3427662ed6edb6d20b7660aba4ad8 (patch)
treec6c4c0fae66a734d3026d51054b547b49db4f2fc
parentb4095189d77ac2792e06b3c84426106c71c9aba1 (diff)
downloadlibssh-3e90a11599d3427662ed6edb6d20b7660aba4ad8.tar.gz
libssh-3e90a11599d3427662ed6edb6d20b7660aba4ad8.tar.xz
libssh-3e90a11599d3427662ed6edb6d20b7660aba4ad8.zip
Improve standard logging.
-rw-r--r--libssh/auth.c3
-rw-r--r--libssh/connect.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index c79d1642..171f4b75 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -838,7 +838,8 @@ int ssh_userauth_autopubkey(ssh_session session, const char *passphrase) {
#ifndef _WIN32
if (agent_is_running(session)) {
ssh_log(session, SSH_LOG_RARE,
- "Trying to authenticate with SSH agent keys");
+ "Trying to authenticate with SSH agent keys as user: %s",
+ session->username);
for (publickey = agent_get_first_ident(session, &privkeyfile);
publickey != NULL;
diff --git a/libssh/connect.c b/libssh/connect.c
index 977dfac8..63aa7cfb 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -214,6 +214,9 @@ static int ssh_connect_ai_timeout(ssh_session session, const char *host,
sock_set_nonblocking(s);
+ ssh_log(session, SSH_LOG_RARE, "Trying to connect to host: %s:%d with "
+ "timeout %ld.%ld", host, port, timeout, usec);
+
/* The return value is checked later */
connect(s, ai->ai_addr, ai->ai_addrlen);
freeaddrinfo(ai);