[tor-bugs] #10059 [Tor]: capture tor log messages before control connection is opened

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 1 14:35:06 UTC 2013


#10059: capture tor log messages before control connection is opened
------------------------+------------------------------
     Reporter:  mcs     |      Owner:  nickm
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:
    Component:  Tor     |    Version:  Tor: unspecified
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:  #9675
       Points:          |
------------------------+------------------------------

Comment (by nickm):

 >I think the way arm et al handle this is by reading Tor's stdout until it
 switches over to the control protocol.

 According to mcs above, "the Mozilla process control APIs do not provide a
 way to capture stdout or stderr".

 I'd agree that the stdout solution is inelegant, and I'd be happy to
 consider something better. It wouldn't be too hard to cache log messages
 that happen before the original log configuration, or the original
 controller connection.  Perhaps it should be controlled by a command-line
 option; perhaps also there should be an upper-limit on the buffer size.


 Another related question to consider: what to do with log messages if Tor
 dies before a controller connection can be made?

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10059#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list