Log function name for time log
This commit is contained in:
parent
aca7c3ee4e
commit
9d60b9bbbe
1 changed files with 2 additions and 1 deletions
|
@ -856,7 +856,8 @@ def LogTime(func):
|
||||||
starttotal = datetime.now()
|
starttotal = datetime.now()
|
||||||
result = func(*args, **kwargs)
|
result = func(*args, **kwargs)
|
||||||
elapsedtotal = datetime.now() - starttotal
|
elapsedtotal = datetime.now() - starttotal
|
||||||
log.debug('It took %s to run the function.' % (elapsedtotal))
|
log.debug('It took %s to run the function %s'
|
||||||
|
% (elapsedtotal, func.__name__))
|
||||||
return result
|
return result
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue