test push
This commit is contained in:
parent
8b2056ad66
commit
967a2efc1e
8 changed files with 1 additions and 475 deletions
11
varken/logger.py
Normal file
11
varken/logger.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import functools
|
||||
|
||||
def logging(function):
|
||||
@functools.wraps(function)
|
||||
def wrapper(*args, **kwargs):
|
||||
print('LOG: Running job "%s"' % function.__name__)
|
||||
result = function(*args, **kwargs)
|
||||
print('LOG: Job "%s" completed' % function.__name__)
|
||||
return result
|
||||
|
||||
return wrapper
|
||||
Loading…
Add table
Add a link
Reference in a new issue