[IMP] logging: fixed DEBUG_RPC logging to be included at DEBUG_SQL level
bzr revid: odo@openerp.com-20100805181045-9h4mdvc6itjr3oiv
This commit is contained in:
parent
d7deee94f7
commit
69cd88bf10
|
@ -395,8 +395,10 @@ class OpenERPDispatcherException(Exception):
|
||||||
|
|
||||||
class OpenERPDispatcher:
|
class OpenERPDispatcher:
|
||||||
def log(self, title, msg):
|
def log(self, title, msg):
|
||||||
if tools.config['log_level'] == logging.DEBUG_RPC:
|
logger = logging.getLogger(title)
|
||||||
Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
|
if logger.isEnabledFor(logging.DEBUG_RPC):
|
||||||
|
for line in pformat(msg).split('\n'):
|
||||||
|
logger.log(logging.DEBUG_RPC, line)
|
||||||
|
|
||||||
def dispatch(self, service_name, method, params):
|
def dispatch(self, service_name, method, params):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue