summaryrefslogtreecommitdiff
path: root/bin/netsvc.py
diff options
context:
space:
mode:
authorJay (Open ERP) <jvo@tinyerp.com>2010-05-20 12:00:44 +0530
committerJay (Open ERP) <jvo@tinyerp.com>2010-05-20 12:00:44 +0530
commite3ccef27d33ff83ddbb7bfd3eacc80f8a98bd21d (patch)
treef14fb77ab9702c91bcb9309724e5aa63a96ee570 /bin/netsvc.py
parent2669744f4f09ca6ac9219dc91909e895559c74c0 (diff)
parentfe7673b7ba1f2706b8ed2abe6892ad33211063cd (diff)
[BACKPORT] Stable fixes and refactorings to Trunk
bzr revid: jvo@tinyerp.com-20100520063044-sviy1e9pybirhpsw
Diffstat (limited to 'bin/netsvc.py')
-rw-r--r--bin/netsvc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/netsvc.py b/bin/netsvc.py
index 04e29f444e7..f0fe4687417 100644
--- a/bin/netsvc.py
+++ b/bin/netsvc.py
@@ -382,7 +382,8 @@ class OpenERPDispatcherException(Exception):
class OpenERPDispatcher:
def log(self, title, msg):
- Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
+ if tools.config['log_level'] == logging.DEBUG_RPC:
+ Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
def dispatch(self, service_name, method, params):
try: