File tree Expand file tree Collapse file tree 8 files changed +13
-234
lines changed 
templates/debug_toolbar/panels Expand file tree Collapse file tree 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 
12from  functools  import  lru_cache 
23
34from  django .conf  import  settings 
@@ -64,7 +65,6 @@ def get_config():
6465    "debug_toolbar.panels.templates.TemplatesPanel" ,
6566    "debug_toolbar.panels.cache.CachePanel" ,
6667    "debug_toolbar.panels.signals.SignalsPanel" ,
67-     "debug_toolbar.panels.logging.LoggingPanel" ,
6868    "debug_toolbar.panels.redirects.RedirectsPanel" ,
6969    "debug_toolbar.panels.profiling.ProfilingPanel" ,
7070]
@@ -76,6 +76,14 @@ def get_panels():
7676        PANELS  =  list (settings .DEBUG_TOOLBAR_PANELS )
7777    except  AttributeError :
7878        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+         )
7987    return  PANELS 
8088
8189
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 99* Use ``TOOLBAR_LANGUAGE `` setting when rendering individual panels
1010  that are loaded via AJAX.
1111* 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.
1216
13173.8.1 (2022-12-03)
1418------------------ 
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ default value is::
3131        'debug_toolbar.panels.templates.TemplatesPanel', 
3232        'debug_toolbar.panels.cache.CachePanel', 
3333        'debug_toolbar.panels.signals.SignalsPanel', 
34-         'debug_toolbar.panels.logging.LoggingPanel', 
3534        'debug_toolbar.panels.redirects.RedirectsPanel', 
3635        'debug_toolbar.panels.profiling.ProfilingPanel', 
3736    ] 
Original file line number Diff line number Diff line change @@ -97,13 +97,6 @@ Signal
9797
9898List of signals and receivers.
9999
100- Logging
101- ~~~~~~~ 
102- 
103- .. class :: debug_toolbar.panels.logging.LoggingPanel 
104- 
105- Logging output via Python's built-in :mod: `logging ` module.
106- 
107100Redirects
108101~~~~~~~~~ 
109102
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ class HistoryViewsTestCase(IntegrationTestCase):
7777        "TemplatesPanel" ,
7878        "CachePanel" ,
7979        "SignalsPanel" ,
80-         "LoggingPanel" ,
8180        "ProfilingPanel" ,
8281    }
8382
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments