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 2ab2c83 commit 1566b4dCopy full SHA for 1566b4d
debug_toolbar/panels/logging.py
@@ -50,7 +50,6 @@ def emit(self, record):
50
51
collector = LogCollector()
52
logging_handler = ThreadTrackingHandler(collector)
53
-logging.root.setLevel(logging.NOTSET)
54
logging.root.addHandler(logging_handler)
55
56
tests/panels/test_logging.py
@@ -16,6 +16,10 @@ def setUp(self):
16
self.logger = logging.getLogger(__name__)
17
collector.clear_collection()
18
19
+ # Assume the root logger has been configured with level=DEBUG.
20
+ # Previously DDT forcefully set this itself to 0 (NOTSET).
21
+ logging.root.setLevel(logging.DEBUG)
22
+
23
def test_happy_case(self):
24
self.logger.info('Nothing to see here, move along!')
25
0 commit comments