[X2Go-Commits] [x2gobroker] 04/05: loadchecker.py: Add more log message for DEBUG mode.

git-admin at x2go.org git-admin at x2go.org
Mon Mar 30 14:44:07 CEST 2015


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

x2go pushed a commit to branch master
in repository x2gobroker.

commit b213c6e3987085fd130d97fe47ccf1ed05b4f7e5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Mar 30 14:43:30 2015 +0200

    loadchecker.py: Add more log message for DEBUG mode.
---
 x2gobroker/loadchecker.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/x2gobroker/loadchecker.py b/x2gobroker/loadchecker.py
index 6a6d1f1..c2eea74 100644
--- a/x2gobroker/loadchecker.py
+++ b/x2gobroker/loadchecker.py
@@ -184,11 +184,13 @@ class LoadChecker(threading.Thread):
                 self.brokers[backend] = _broker_backend_module.X2GoBroker(config_file=self.config_file, config_defaults=self.config_defaults, **self.kwargs)
                 profile_ids_to_check = [ id for id in self.brokers[backend].get_profile_ids() if self.brokers[backend].use_load_checker(id) ]
 
+                if self.logger: self.logger.debug('LoadChecker.loadchecker(): backend={backend} -> processing profiles: {profile_ids}'.format(backend=backend, profile_ids=profile_ids_to_check))
                 for profile_id in profile_ids_to_check:
 
                     if not self.server_load[backend].has_key(profile_id):
                         self.server_load[backend][profile_id] = {}
                     remote_agents = self.brokers[backend].get_all_remote_agents(profile_id)
+                    if self.logger: self.logger.debug('LoadChecker.loadchecker(): querying remote agents for backend={backend}, profile_id={profile_id}: {remote_agents}'.format(backend=backend, profile_id=profile_id, remote_agents=remote_agents))
                     for remote_agent in remote_agents:
                         _load_factor = x2gobroker.agent.check_load(remote_agent, logger=self.logger)
                         num_queries += 1

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


More information about the x2go-commits mailing list