From 667d6cd6e331ce61363b0c77818460348690cda7 Mon Sep 17 00:00:00 2001 From: Lisa Zangrando Date: Tue, 14 Feb 2017 16:24:24 +0100 Subject: [PATCH] Fix the TypeError: not all arguments converted during string formatting This commit fixes the bug concerning the use of a wrong logging format into the SchedulerManager. Bug: #1664608 Change-Id: Id39fab710571e21be1e4580621a2f698febf2a7a Sem-Ver: bugfix --- synergy_scheduler_manager/scheduler_manager.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/synergy_scheduler_manager/scheduler_manager.py b/synergy_scheduler_manager/scheduler_manager.py index 9594c2e..4db1523 100644 --- a/synergy_scheduler_manager/scheduler_manager.py +++ b/synergy_scheduler_manager/scheduler_manager.py @@ -220,7 +220,7 @@ class Worker(Thread): continue except Exception as ex: LOG.warn("the server %s is not anymore available!" - "(reason=%s)" % (self.name, server_id, ex)) + "(reason=%s)" % (server_id, ex)) self.queue.deleteItem(queue_item) continue @@ -243,8 +243,7 @@ class Worker(Thread): context["user_id"] = token.getUser().getId() except Exception as ex: LOG.error("error on getting the token for server " - "%s (reason=%s)" - % (self.name, server.getId(), ex)) + "%s (reason=%s)" % (server.getId(), ex)) raise ex try: @@ -256,7 +255,7 @@ class Worker(Thread): found = True except Exception as ex: LOG.error("error on building the server %s (reason=%s)" - % (self.name, server.getId(), ex)) + % (server.getId(), ex)) if found: self.queue.deleteItem(queue_item)