[FIX] werkzeug logging respect "--log-level" setting for warn, error and critical...
authorChristophe Simonis <chs@odoo.com>
Sun, 22 Jun 2014 09:44:30 +0000 (11:44 +0200)
committerChristophe Simonis <chs@odoo.com>
Sun, 22 Jun 2014 09:44:30 +0000 (11:44 +0200)
openerp/netsvc.py

index 391de55..e6c05bf 100644 (file)
@@ -212,9 +212,9 @@ PSEUDOCONFIG_MAPPER = {
     'debug': ['openerp:DEBUG'],
     'debug_sql': ['openerp.sql_db:DEBUG'],
     'info': [],
-    'warn': ['openerp:WARNING'],
-    'error': ['openerp:ERROR'],
-    'critical': ['openerp:CRITICAL'],
+    'warn': ['openerp:WARNING', 'werkzeug:WARNING'],
+    'error': ['openerp:ERROR', 'werkzeug:ERROR'],
+    'critical': ['openerp:CRITICAL', 'werkzeug:CRITICAL'],
 }
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: