Make remaining log.error/debug lazy
This commit is contained in:
parent
9d261c902f
commit
514434f446
2 changed files with 2 additions and 2 deletions
|
@ -553,7 +553,7 @@ class Core(object):
|
|||
self.xmpp.plugin['xep_0012'].begin_idle(jid=self.xmpp.boundjid)
|
||||
|
||||
def exit(self, event=None):
|
||||
log.debug("exit(%s)" % (event,))
|
||||
log.debug("exit(%s)", event)
|
||||
asyncio.get_event_loop().stop()
|
||||
|
||||
def on_exception(self, typ, value, trace):
|
||||
|
|
|
@ -68,7 +68,7 @@ class User(object):
|
|||
def change_color(self, color_name, deterministic=False):
|
||||
color = xhtml.colors.get(color_name)
|
||||
if color == None:
|
||||
log.error('Unknown color "%s"' % color_name)
|
||||
log.error('Unknown color "%s"', color_name)
|
||||
if deterministic:
|
||||
self.set_deterministic_color()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue