File tree 8 files changed +13
-234
lines changed
templates/debug_toolbar/panels
8 files changed +13
-234
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import warnings
1
2
from functools import lru_cache
2
3
3
4
from django .conf import settings
@@ -64,7 +65,6 @@ def get_config():
64
65
"debug_toolbar.panels.templates.TemplatesPanel" ,
65
66
"debug_toolbar.panels.cache.CachePanel" ,
66
67
"debug_toolbar.panels.signals.SignalsPanel" ,
67
- "debug_toolbar.panels.logging.LoggingPanel" ,
68
68
"debug_toolbar.panels.redirects.RedirectsPanel" ,
69
69
"debug_toolbar.panels.profiling.ProfilingPanel" ,
70
70
]
@@ -76,6 +76,14 @@ def get_panels():
76
76
PANELS = list (settings .DEBUG_TOOLBAR_PANELS )
77
77
except AttributeError :
78
78
PANELS = PANELS_DEFAULTS
79
+
80
+ logging_panel = "debug_toolbar.panels.logging.LoggingPanel"
81
+ if logging_panel in PANELS :
82
+ PANELS = [panel for panel in PANELS if panel != logging_panel ]
83
+ warnings .warn (
84
+ f"Please remove { logging_panel } from your DEBUG_TOOLBAR_PANELS setting." ,
85
+ DeprecationWarning ,
86
+ )
79
87
return PANELS
80
88
81
89
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
* Use ``TOOLBAR_LANGUAGE `` setting when rendering individual panels
10
10
that are loaded via AJAX.
11
11
* Add decorator for rendering toolbar views with ``TOOLBAR_LANGUAGE ``.
12
+ * Removed the logging panel. The panel's implementation was too complex, caused
13
+ memory leaks and sometimes very verbose and hard to silence output in some
14
+ environments (but not others). The maintainers judged that time and effort is
15
+ better invested elsewhere.
12
16
13
17
3.8.1 (2022-12-03)
14
18
------------------
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ default value is::
31
31
'debug_toolbar.panels.templates.TemplatesPanel',
32
32
'debug_toolbar.panels.cache.CachePanel',
33
33
'debug_toolbar.panels.signals.SignalsPanel',
34
- 'debug_toolbar.panels.logging.LoggingPanel',
35
34
'debug_toolbar.panels.redirects.RedirectsPanel',
36
35
'debug_toolbar.panels.profiling.ProfilingPanel',
37
36
]
Original file line number Diff line number Diff line change @@ -97,13 +97,6 @@ Signal
97
97
98
98
List of signals and receivers.
99
99
100
- Logging
101
- ~~~~~~~
102
-
103
- .. class :: debug_toolbar.panels.logging.LoggingPanel
104
-
105
- Logging output via Python's built-in :mod: `logging ` module.
106
-
107
100
Redirects
108
101
~~~~~~~~~
109
102
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ class HistoryViewsTestCase(IntegrationTestCase):
77
77
"TemplatesPanel" ,
78
78
"CachePanel" ,
79
79
"SignalsPanel" ,
80
- "LoggingPanel" ,
81
80
"ProfilingPanel" ,
82
81
}
83
82
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments