Commit 6d3830cf authored by Antenore Gatta's avatar Antenore Gatta

log verbosity implemented in remmina_ssh

parent a77a55d0
......@@ -72,6 +72,7 @@
#include "remmina_public.h"
#include "remmina_log.h"
#include "remmina_ssh.h"
#include "remmina_pref.h"
#include "remmina/remmina_trace_calls.h"
/*************************** SSH Base *********************************/
......@@ -374,6 +375,7 @@ remmina_ssh_init_session (RemminaSSH *ssh)
{
TRACE_CALL("remmina_ssh_init_session");
gint verbosity;
//gchar* verbosity;
ssh->callback = g_new0 (struct ssh_callbacks_struct, 1);
ssh->callback->userdata = ssh;
......@@ -385,7 +387,7 @@ remmina_ssh_init_session (RemminaSSH *ssh)
ssh_options_set (ssh->session, SSH_OPTIONS_USER, ssh->user);
if (remmina_log_running ())
{
verbosity = SSH_LOG_RARE;
verbosity = remmina_pref.ssh_loglevel;
ssh_options_set (ssh->session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
ssh->callback->log_function = remmina_ssh_log_callback;
}
......@@ -416,6 +418,7 @@ remmina_ssh_init_from_file (RemminaSSH *ssh, RemminaFile *remminafile)
const gchar *ssh_username;
const gchar *ssh_privatekey;
const gchar *server;
gint verbosity;
gchar *s;
ssh->session = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment