[Twisted-Python] passing exception object to log.err doesn't log traceback?
poalman at gmail.com
Thu Nov 15 09:02:05 EST 2012
I was just looking at some logs and some of the errors logged without
tracebacks, I work out it was when I wasn't passing the error object to
log.err- Is this by design?
Here is some code which shows it logging and not logging the traceback
from twisted.python import log
from twisted.python.logfile import DailyLogFile
if not x:
except Exception as e:
log.err(e if pass_exception else None)
if __name__ == "__main__":
work(5,True) #Doesn't log traceback
work(5,False) #Does log
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python