mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added a little extra logging.
This commit is contained in:
parent
1b462c8b55
commit
a74d1d5aef
@ -638,10 +638,14 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
def callCommand(self, f, irc, msg, *L):
|
def callCommand(self, f, irc, msg, *L):
|
||||||
# Exceptions aren't caught here because IrcObjectProxy.finalEval
|
# Exceptions aren't caught here because IrcObjectProxy.finalEval
|
||||||
# catches them and does The Right Thing.
|
# catches them and does The Right Thing.
|
||||||
|
name = f.im_func.func_name
|
||||||
|
assert L, 'Odd, nothing in L. This can\'t happen.'
|
||||||
|
self.log.info('Command %s called with args %s by %s',
|
||||||
|
name, L[0], msg.prefix)
|
||||||
start = time.time()
|
start = time.time()
|
||||||
f(irc, msg, *L)
|
f(irc, msg, *L)
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
self.log.info('%s took %s seconds', f.im_func.func_name, elapsed)
|
self.log.info('%s took %s seconds', name, elapsed)
|
||||||
|
|
||||||
|
|
||||||
class IrcObjectProxyRegexp(object):
|
class IrcObjectProxyRegexp(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user