Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lazy_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def __exit__(self, exc_type, exc_value, exc_traceback):
# adding a TRACE level for stack debugging
_LAZY_TRACE = 1
logging.addLevelName(1, "LAZY_TRACE")
logging.basicConfig(level=logging.WARNING)
# Logs a formatted stack (takes no message or args/kwargs)
def _lazy_trace(self):
if self.isEnabledFor(_LAZY_TRACE):
Expand All @@ -109,6 +108,7 @@ def _lazy_trace(self):
self._log(_LAZY_TRACE, subline.rstrip(), ())
logging.Logger.lazy_trace = _lazy_trace
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)

################################
# Module/function registration #
Expand Down