[hotssh] Add GSSH_DEBUG_LIBSSH environment variable
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hotssh] Add GSSH_DEBUG_LIBSSH environment variable
- Date: Thu, 5 Dec 2013 14:41:37 +0000 (UTC)
commit 653e0ed887ffb0f7a5fc622f981794188f83a01a
Author: Colin Walters <walters verbum org>
Date: Thu Dec 5 08:48:46 2013 -0500
Add GSSH_DEBUG_LIBSSH environment variable
libgssh/gssh-connection.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgssh/gssh-connection.c b/libgssh/gssh-connection.c
index 52996af..794d6ef 100644
--- a/libgssh/gssh-connection.c
+++ b/libgssh/gssh-connection.c
@@ -707,7 +707,8 @@ on_socket_client_connected (GObject *src,
self->socket = g_socket_connection_get_socket (self->socketconn);
self->session = ssh_new ();
- /* ssh_set_log_level (SSH_LOG_FUNCTIONS); */
+ if (g_getenv ("GSSH_DEBUG_SSH"))
+ ssh_set_log_level (SSH_LOG_FUNCTIONS);
if (!self->session)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]