Commit 886cdb1e authored by Andreas Jung's avatar Andreas Jung

error=sys.exc_info() -> exc_info=True *SIGH*

parent ca12da8d
......@@ -677,7 +677,7 @@ class ObjectManager(
stat=marshal.loads(v.manage_FTPstat(REQUEST))
except:
logger.error("Failed to stat file '%s'" % k,
error=sys.exc_info())
exc_info=True)
stat=None
if stat is not None:
out=out+((k,stat),)
......
......@@ -193,7 +193,7 @@ class BTreeFolder2Base (Persistent):
return 1
except AssertionError:
LOG.warn( 'Detected damage to %s. Fixing now.' % path,
error=sys.exc_info())
exc_info=True)
try:
self._tree = OOBTree(self._tree)
mt_index = OOBTree()
......@@ -202,7 +202,7 @@ class BTreeFolder2Base (Persistent):
self._mt_index = mt_index
except:
LOG.error('Failed to fix %s.' % path,
error=sys.exc_info())
exc_info=True)
raise
else:
LOG.info('Fixed %s.' % path)
......
......@@ -440,7 +440,7 @@ class PythonScript(Script, Historical, Cacheable):
else:
self._makeFunction()
except:
LOG.error('write failed', error=sys.exc_info())
LOG.error('write failed', exc_info=True)
raise
def manage_FTPget(self):
......
......@@ -284,7 +284,7 @@ class SessionDataManagerTraverser(Persistent):
getSessionData = sdm.getSessionData
except:
msg = 'Session automatic traversal failed to get session data'
logger.warn(msg, error=sys.exc_info())
logger.warn(msg, exc_info=True)
return
# set the getSessionData method in the "lazy" namespace
......
......@@ -801,7 +801,7 @@ class TransientObjectContainer(SimpleItem):
err = 'No such onAdd/onDelete method %s referenced via %s'
LOG.warning(
err % (callback, '/'.join(path)),
error=sys.exc_info()
exc_info=True()
)
return
else:
......@@ -822,7 +822,7 @@ class TransientObjectContainer(SimpleItem):
LOG.warning(
'%s failed when calling %s in %s' % (name,callback,
'/'.join(path)),
error=sys.exc_info()
exc_info=True()
)
finally:
setSecurityManager(sm)
......@@ -831,7 +831,7 @@ class TransientObjectContainer(SimpleItem):
path = self.getPhysicalPath()
LOG.warning(
err % (name, '/'.join(path), callback),
error=sys.exc_info()
exc_info=True()
)
def getId(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment