Closed hellais closed 10 years ago
@hellais see branch issue-79 that I just pushed; will this work for your use-case?
Basically you just pass something with a .write() to stderr and/or stdout kwargs to launch_tor(). I also made the "kill tor on any stderr output" behavior optional.
@meejah yes this is perfect. It works very well for my use case. Thanks for the prompt reply :)
This is in master now. Will be in next release.
Currently it is not simple to obtain the stdout and stderr output of tor when invoking it via
launch_tor
. This is because if tor does not reach 100% bootstrap then the deferred returned bylaunch_tor()
does not fire and it is not possible to access theTorProcessProtocol
.It would be very useful to have a way of logging all stdout and stderr output even if no errback is triggered.