[FIX] logging: undefined LOG_DEBUG_RPC constant.

bzr revid: vmt@openerp.com-20120206235853-5e5mxq4hfl9epgbb
This commit is contained in:
Vo Minh Thu 2012-02-07 00:58:53 +01:00
parent d716788966
commit 354a1baaf8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Logger(object):
log = logging.getLogger(__name__ + '.deprecated.' + ustr(name))
if level in [LOG_DEBUG_RPC, LOG_TEST] and not hasattr(log, level):
if level in [LOG_TEST] and not hasattr(log, level):
fct = lambda msg, *args, **kwargs: log.log(getattr(logging, level.upper()), msg, *args, **kwargs)
setattr(log, level, fct)