Slight change to logging output.

This commit is contained in:
Jeremy Fincher 2004-07-31 08:27:25 +00:00
parent fb9a19ca17
commit 41f07048c1

View File

@ -875,8 +875,8 @@ class Privmsg(irclib.IrcCallback):
def callCommand(self, method, irc, msg, *L): def callCommand(self, method, irc, msg, *L):
name = method.im_func.func_name name = method.im_func.func_name
assert L, 'Odd, nothing in L. This can\'t happen.' assert L, 'Odd, nothing in L. This can\'t happen.'
self.log.info('Command %s called with args %s by %s', self.log.info('%r called by %s', name, msg.prefix)
name, L[0], msg.prefix) self.log.debug('args: %s', L[0])
start = time.time() start = time.time()
method(irc, msg, *L) method(irc, msg, *L)
elapsed = time.time() - start elapsed = time.time() - start