[FIX] netsvc: make sure pseudo_config variable is always initialized.
authorVo Minh Thu <vmt@openerp.com>
Fri, 10 Feb 2012 13:44:46 +0000 (14:44 +0100)
committerVo Minh Thu <vmt@openerp.com>
Fri, 10 Feb 2012 13:44:46 +0000 (14:44 +0100)
bzr revid: vmt@openerp.com-20120210134446-ijg8t6ms1938i77t

openerp/netsvc.py

index 3491881..0051fe6 100644 (file)
@@ -216,6 +216,8 @@ def init_logger():
         pseudo_config = ['openerp:CRITICAL']
     elif tools.config['log_level'] == 'debug_sql':
         pseudo_config = ['openerp.sql_db:DEBUG']
+    else:
+        pseudo_config = []
 
     logconfig = tools.config['log_handler']