tor's output, for debugging

This commit is contained in:
meejah 2016-10-03 16:28:13 -06:00 committed by Brian Warner
parent 646fad69ed
commit eb6c6bee9e

View File

@ -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,
) )