[FIX] logging: undefined LOG_DEBUG_RPC constant.
bzr revid: vmt@openerp.com-20120206235853-5e5mxq4hfl9epgbb
This commit is contained in:
parent
d716788966
commit
354a1baaf8
|
@ -50,7 +50,7 @@ class Logger(object):
|
||||||
|
|
||||||
log = logging.getLogger(__name__ + '.deprecated.' + ustr(name))
|
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)
|
fct = lambda msg, *args, **kwargs: log.log(getattr(logging, level.upper()), msg, *args, **kwargs)
|
||||||
setattr(log, level, fct)
|
setattr(log, level, fct)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue