[FIX] netsvc: make sure pseudo_config variable is always initialized.

bzr revid: vmt@openerp.com-20120210134446-ijg8t6ms1938i77t
This commit is contained in:
Vo Minh Thu 2012-02-10 14:44:46 +01:00
parent 799752a74b
commit 0124aa45c6
1 changed files with 2 additions and 0 deletions

View 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']