fix debug notice to display repr of returned object (fix crash when result is a binary string)

This commit is contained in:
Romain Bignon 2010-07-12 09:19:57 +02:00
commit bf5072b73c

View file

@ -97,7 +97,7 @@ class BackendsCall(object):
except Exception, error:
self._store_error(backend, error)
else:
debug('%s: Called function %s returned: "%s"' % (backend, function, result))
debug('%s: Called function %s returned: %r' % (backend, function, result))
if hasattr(result, '__iter__'):
# Loop on iterator