Skip to content

v2.1.6

@neuraaak neuraaak tagged this 27 May 09:45
* fix: prevent loguru KeyError on braces and resolve true caller frame

Boto3/botocore stdlib DEBUG messages containing dict reprs like
{'Bucket': 'x'} were crashing the file sink with KeyError because
loguru re-parses the formatter's return value via format_map. Escape
braces centrally in EzLogger's custom formatter (single source of
truth) and drop the redundant escape in InterceptHandler to avoid
double-escaping. Also use opt(depth=1) in EzLogger wrappers and the
canonical inspect-based frame walk in InterceptHandler so log records
report the real caller instead of file:info or __init__:callHandlers.

* Implement code changes to enhance functionality and improve performance
Assets 2
Loading