Skip to content

Commit 990ded8

Browse files
committed
Fixed loguru stack location
1 parent ce50bca commit 990ded8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python_utils/loguru.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ class Logurud(logger.LoggerBase):
1111
logger: loguru.Logger
1212

1313
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
14+
cls.logger: loguru.Loguru = loguru.logger.opt(depth=1)
1715
return super().__new__(cls)

0 commit comments

Comments
 (0)