diff --git a/bin/netsvc.py b/bin/netsvc.py index 34727952bab..d32513f6f39 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -365,7 +365,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: