Note that there are some explanatory texts on larger screens.

plurals
  1. POTwisted with repeated ERROR:twisted log on addErrback
    primarykey
    data
    text
    <p>I have the following twister code - version Twisted 13.1.0.</p> <pre><code>d=task.deferLater(reactor, 0, someFX1,arg1) d.addCallback(someClient.send_FX2, ARG) d.addErrback(fail) </code></pre> <p>With fail:</p> <pre><code>def fail(reason): log.err(reason) reactor.stop() </code></pre> <p>I had to add the addErrback so i could catch the errors from <code>someClient.send_FX2</code></p> <p>The problem is that, with the <code>d.addErrback(fail)</code>, the logs go crazy. There are know thousands of lines of ERROR:twisted - here is the tail of the logs.</p> <pre><code>2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted:ERROR:twisted: 2013-08-08 14:20:24+0100 [-] ERROR:twisted: 2013-08-08 14:20:24+0100 [-] 2013-08-08 14:20:24+0100 [-] Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1182, in mainLoop self.runUntilCurrent() File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 805, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 381, in callback self._startRunCallbacks(result) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 489, in _startRunCallbacks self._runCallbacks() --- &lt;exception caught here&gt; --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 576, in _runCallbacks current.result = callback(current.result, *args, **kw) (....) exceptions.AssertionError: invalid XXX 2013-08-08 14:20:24+0100 [XXXXXXClientReceiver,client] Stopping factory &lt;XXXXXXclient.XXXXXXClientFactory instance at 0x1c46a28&gt; </code></pre> <p>Any idea on what is happening to create so many log entries?</p> <p>Thanks.</p> <p><strong>Update</strong></p> <p>I had the python logging observer - </p> <pre><code>observer = log.PythonLoggingObserver() observer.start() </code></pre> <p>Removing those, the logs went back to normal.</p> <p>How can i set the observer without this logging problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload