mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
tor's output, for debugging
This commit is contained in:
parent
646fad69ed
commit
eb6c6bee9e
@ -1,10 +1,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import absolute_import, print_function, with_statement
|
from __future__ import absolute_import, print_function, with_statement
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from twisted.internet.defer import inlineCallbacks, returnValue
|
from twisted.internet.defer import inlineCallbacks, returnValue
|
||||||
from twisted.internet.endpoints import clientFromString
|
from twisted.internet.endpoints import clientFromString
|
||||||
from twisted.internet.error import ConnectionRefusedError, ConnectError
|
from twisted.internet.error import ConnectionRefusedError, ConnectError
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
|
||||||
from .observer import OneShotObserverList
|
from .observer import OneShotObserverList
|
||||||
from .iputil import allocate_tcp_port
|
from .iputil import allocate_tcp_port
|
||||||
|
|
||||||
@ -83,6 +85,7 @@ def _launch_tor(reactor, tor_executable, private_dir, txtorcon):
|
|||||||
tpp = yield txtorcon.launch_tor(
|
tpp = yield txtorcon.launch_tor(
|
||||||
tor_config, reactor,
|
tor_config, reactor,
|
||||||
tor_binary=tor_executable,
|
tor_binary=tor_executable,
|
||||||
|
# can be useful when debugging; mirror Tor's output to ours
|
||||||
# stdout=sys.stdout,
|
# stdout=sys.stdout,
|
||||||
# stderr=sys.stderr,
|
# stderr=sys.stderr,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user