1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-21 15:51:52 -05:00

Compare commits

..

1 Commits

Author SHA1 Message Date
afourney
35c3a458e7
Merge 24714923be into 03ce5a3d50 2024-11-11 20:49:31 -08:00

View File

@ -28,8 +28,7 @@ def trace(*dec_args, **dec_kwargs):
def _decorator(f):
func_name = f.__qualname__
func_file = "/".join(f.__code__.co_filename.split("/")[-4:])
func_name = f.__name__
@functools.wraps(f)
def trace_logging_wrapper(*args, **kwargs):
@ -47,11 +46,10 @@ def trace(*dec_args, **dec_kwargs):
if pass_filter:
logger.debug(
"==> %(func)s: call %(all_args)r file: %(file)s",
"==> %(func)s: call %(all_args)r",
{
"func": func_name,
"all_args": str(all_args),
"file": func_file,
},
)