mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add @wraps decorator
This commit is contained in:
parent
cac9f17307
commit
a62852d407
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ def timing(function):
|
|||
'''
|
||||
Decorator wrapper to log execution time, for profiling purposes
|
||||
'''
|
||||
@wraps(function)
|
||||
def wrapped(*args, **kwargs):
|
||||
start_time = time.time()
|
||||
ret = function(*args, **salt.utils.clean_kwargs(**kwargs))
|
||||
|
|
Loading…
Add table
Reference in a new issue