mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-25 09:28:38 -05:00
Compare commits
1 Commits
1ed2914618
...
35c3a458e7
Author | SHA1 | Date | |
---|---|---|---|
|
35c3a458e7 |
@ -28,8 +28,7 @@ def trace(*dec_args, **dec_kwargs):
|
|||||||
|
|
||||||
def _decorator(f):
|
def _decorator(f):
|
||||||
|
|
||||||
func_name = f.__qualname__
|
func_name = f.__name__
|
||||||
func_file = "/".join(f.__code__.co_filename.split("/")[-4:])
|
|
||||||
|
|
||||||
@functools.wraps(f)
|
@functools.wraps(f)
|
||||||
def trace_logging_wrapper(*args, **kwargs):
|
def trace_logging_wrapper(*args, **kwargs):
|
||||||
@ -47,11 +46,10 @@ def trace(*dec_args, **dec_kwargs):
|
|||||||
|
|
||||||
if pass_filter:
|
if pass_filter:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"==> %(func)s: call %(all_args)r file: %(file)s",
|
"==> %(func)s: call %(all_args)r",
|
||||||
{
|
{
|
||||||
"func": func_name,
|
"func": func_name,
|
||||||
"all_args": str(all_args),
|
"all_args": str(all_args),
|
||||||
"file": func_file,
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user