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
This commit is contained in:
parent
e8fa8cb567
commit
667d6cd6e3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user