[Twisted-Python] Truncated exception message for reactor instance

Kangkook Jee aixer77 at gmail.com
Fri Jan 23 11:17:32 MST 2009


Hi all

I'm a Twisted newbie and I have  a question about exception handling  
of Twisted framework.
Whenever I got some exception raised from somewhere, I got truncated  
exception message like this.

 >>>Traceback (most recent call last):
   File "./fcli.py", line 68, in <module>
     reactor.run()
   File "/opt/local/lib/python2.5/site-packages/twisted/internet/ 
posixbase.py", line 223, in run
     self.mainLoop()
   File "/opt/local/lib/python2.5/site-packages/twisted/internet/ 
posixbase.py", line 234, in mainLoop
     self.doIteration(t)
   File "/opt/local/lib/python2.5/site-packages/twisted/internet/ 
selectreactor.py", line 140, in doSelect
     _logrun(selectable, _drdw, selectable, method, dict)
--- <exception caught here> ---
   File "/opt/local/lib/python2.5/site-packages/twisted/python/ 
log.py", line 51, in callWithLogger
     return callWithContext({"system": lp}, func, *args, **kw)
   File "/opt/local/lib/python2.5/site-packages/twisted/python/ 
log.py", line 36, in callWithContext
     return context.call({ILogContext: newCtx}, func, *args, **kw)
   File "/opt/local/lib/python2.5/site-packages/twisted/python/ 
context.py", line 59, in callWithContext
     return self.currentContext().callWithContext(ctx

and this make me so hard to find exact cause of the problem.
Can anyone tell me how can I solve this problem?

Thanks a lot for your help in advance!
/Kangkook
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20090123/73e37ca6/attachment.html>


More information about the Twisted-Python mailing list