You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
based on internal decorator variable, decide if function was a succes, and if not, the reason for failing
def log( fun, *args, **kwargs):
succes = True
log_on_succes = False
description = 'Default description'
log_level = 'info'
ret = fun(*args, **kwargs)
if not succes:
self.logger.log(description)
elif succes and log_on_succes:
self.logger.log(description)
return ret
The text was updated successfully, but these errors were encountered:
based on internal decorator variable, decide if function was a succes, and if not, the reason for failing
The text was updated successfully, but these errors were encountered: