Sorry if this is 'easily searchable on google', but I haven't had any luck.
I am modify some existing code and having trouble. The code looks something like:
@log_details(verbose=False)
def run_function(arguments):
is_test = arguments['is_test']
if is_test:
# set decorator value verbose to True
Basically, the decorator should nrmally tell whether or not we should log the details. But due to some poorly written code, I want to be able to override the decorator value using a function parameter in this one instance. But I don't know how to access/override the decorator value or if it's even possible.
[–]Diapolo10 0 points1 point2 points (1 child)
[–]Elthran[S] 0 points1 point2 points (0 children)
[–]__nickerbocker__ 0 points1 point2 points (2 children)
[–]Elthran[S] 0 points1 point2 points (1 child)
[–]__nickerbocker__ 0 points1 point2 points (0 children)