[pyramid] Drop warning about pyramid_debugtoolbar not found in debug mode 3.25
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 24 Mar 2017 09:37:51 +0100
branch3.25
changeset 12101 3fd9c12a4426
parent 12100 1cfd19c4b9b5
child 12102 392d5d09f0ef
[pyramid] Drop warning about pyramid_debugtoolbar not found in debug mode Some people way want to run a pyramid server in debug mode without the toolbar. This warning is annoying for them. Others should just install and *include* the toolbar by hand.
cubicweb/pyramid/__init__.py
--- a/cubicweb/pyramid/__init__.py	Fri Mar 24 11:21:39 2017 +0100
+++ b/cubicweb/pyramid/__init__.py	Fri Mar 24 09:37:51 2017 +0100
@@ -22,7 +22,6 @@
 
 import atexit
 import os
-from warnings import warn
 
 import wsgicors
 
@@ -239,10 +238,3 @@
 
     if asbool(config.registry.settings.get('cubicweb.bwcompat', True)):
         config.include('cubicweb.pyramid.bwcompat')
-
-    if cwconfig.debugmode:
-        try:
-            config.include('pyramid_debugtoolbar')
-        except ImportError:
-            warn('pyramid_debugtoolbar package not available, install it to '
-                 'get UI debug features', RuntimeWarning)