diff options
Diffstat (limited to 'bin/netsvc.py')
| -rw-r--r-- | bin/netsvc.py | 3 |
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: |
