[X2Go-Commits] [x2gobroker] 01/02: Reduce Paramiko/SSH verbosity (logging.ERROR) when connecting to remote broker agents.

git-admin at x2go.org git-admin at x2go.org
Wed Mar 19 13:27:37 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit 912b7f060efaee58f3e1be41fe02e5f5cf46859c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Mar 19 12:56:11 2014 +0100

    Reduce Paramiko/SSH verbosity (logging.ERROR) when connecting to remote broker agents.
---
 debian/changelog    |    2 ++
 x2gobroker/agent.py |    4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 99d9efe..e1e4fa1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -103,6 +103,8 @@ x2gobroker (0.0.3.0-0x2go1) UNRELEASED; urgency=low
       use for authentication to X2Go Servers.
     - broker agent: avoid one option system() calls in Perl.
     - For user context changes: set the HOME dir of the new user correctly.
+    - Reduce Paramiko/SSH verbosity (logging.ERROR) when connecting to remote
+      broker agents.
   * debian/control:
     + Replace LDAP support with session brokerage support in LONG_DESCRIPTION.
     + Fix SYNOPSIS texts.
diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py
index f198ce1..2bb92da 100644
--- a/x2gobroker/agent.py
+++ b/x2gobroker/agent.py
@@ -27,6 +27,10 @@ import cStringIO
 import time
 import threading
 import socket
+import logging
+
+paramiko_logger = paramiko.util.logging.getLogger()
+paramiko_logger.setLevel(logging.ERROR)
 
 import x2gobroker._paramiko
 x2gobroker._paramiko.monkey_patch_paramiko()

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git



More information about the x2go-commits mailing list