[X2Go-Commits] [python-x2go] 02/05: logger: don't write the complete given URL to the log

git-admin at x2go.org git-admin at x2go.org
Mon Mar 10 16:08:46 CET 2014


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

x2go pushed a commit to branch brokerclient
in repository python-x2go.

commit 882d76ad24675c8162807c893405a557688af8f5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Mar 9 12:46:30 2014 +0100

    logger: don't write the complete given URL to the log
---
 x2go/backends/profiles/httpbroker.py |    1 +
 x2go/client.py                       |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/x2go/backends/profiles/httpbroker.py b/x2go/backends/profiles/httpbroker.py
index c24f46d..9b7994a 100644
--- a/x2go/backends/profiles/httpbroker.py
+++ b/x2go/backends/profiles/httpbroker.py
@@ -84,6 +84,7 @@ class X2GoSessionProfiles(base.X2GoSessionProfiles):
         self.broker_url = "{protocol}://{hostname}{port}{path}".format(**p)
 
         base.X2GoSessionProfiles.__init__(self, session_profile_defaults=session_profile_defaults, logger=logger, loglevel=loglevel)
+        self.logger("Using session broker at URL: %s" % self.broker_url, log.loglevel_NOTICE)
 
     def broker_simpleauth(self, broker_user, broker_password):
         payload = {
diff --git a/x2go/client.py b/x2go/client.py
index b0bace6..51fcb5c 100644
--- a/x2go/client.py
+++ b/x2go/client.py
@@ -274,7 +274,6 @@ class X2GoClient(object):
             if broker_url.startswith('ssh://'):
                 profiles_backend = 'sshbroker'
             elif broker_url.startswith('http://') or broker_url.startswith('https://'):
-                self.logger('using http(s) broker at URL %s' % broker_url, loglevel=log.loglevel_NOTICE)
                 profiles_backend = 'httpbroker'
         self.profiles_backend = utils._get_backend_class(profiles_backend, "X2GoSessionProfiles")
         self.settings_backend = utils._get_backend_class(settings_backend, "X2GoClientSettings")

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



More information about the x2go-commits mailing list