We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce50bca commit 990ded8Copy full SHA for 990ded8
python_utils/loguru.py
@@ -11,7 +11,5 @@ class Logurud(logger.LoggerBase):
11
logger: loguru.Logger
12
13
def __new__(cls, *args, **kwargs):
14
- # Import at runtime to make loguru an optional dependency
15
- import loguru
16
- cls.logger: loguru.Loguru = loguru.logger
+ cls.logger: loguru.Loguru = loguru.logger.opt(depth=1)
17
return super().__new__(cls)
0 commit comments