From: Yasin Rahman Date: Fri, 10 Apr 2015 15:41:48 +0000 (+0200) Subject: fix:log.warning to logger.warning X-Git-Tag: myslice-1.3~39^2~5 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=67c8b9020ef9b8f10014d026f0824eb50517a9bc fix:log.warning to logger.warning --- diff --git a/manifoldapi/manifoldapi.py b/manifoldapi/manifoldapi.py index 2edecdd7..c215b6c1 100644 --- a/manifoldapi/manifoldapi.py +++ b/manifoldapi/manifoldapi.py @@ -98,7 +98,7 @@ def _execute_query(request, query, manifold_api_session_auth): #raise Exception, 'Error running query: {}'.format(result) if result['code'] == 1: - log.warning("MANIFOLD : {}".format(result['description'])) + logger.warning("MANIFOLD : {}".format(result['description'])) # XXX Handle errors #Error running query: {'origin': [0, 'XMLRPCAPI'], 'code': 2, 'description': 'No such session: No row was found for one()', 'traceback': 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/manifold/core/xmlrpc_api.py", line 68, in xmlrpc_forward\n user = Auth(auth).check()\n File "/usr/local/lib/python2.7/dist-packages/manifold/auth/__init__.py", line 245, in check\n return self.auth_method.check()\n File "/usr/local/lib/python2.7/dist-packages/manifold/auth/__init__.py", line 95, in check\n raise AuthenticationFailure, "No such session: %s" % e\nAuthenticationFailure: No such session: No row was found for one()\n', 'type': 2, 'ts': None, 'value': None}