[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #30592 [Core Tor/Stem]: How do I make stem log info-level to test/data/tor_log?



#30592: How do I make stem log info-level to test/data/tor_log?
-----------------------------------+------------------------------------
 Reporter:  teor                   |          Owner:  atagar
     Type:  defect                 |         Status:  new
 Priority:  Medium                 |      Milestone:  Tor: 0.4.1.x-final
Component:  Core Tor/Stem          |        Version:
 Severity:  Normal                 |     Resolution:
 Keywords:  tor-ci-fail-sometimes  |  Actual Points:
Parent ID:  #30591                 |         Points:
 Reviewer:                         |        Sponsor:
-----------------------------------+------------------------------------

Comment (by atagar):

 Hi teor. Chewing on this a bit I decided to make two changes...

 1.
 [https://gitweb.torproject.org/stem.git/commit/?id=8b07bca61ef2d6f88bf00662a5e493c40f8be9fc
 Stem now empties its tor data directory between runs]
 2.
 [https://gitweb.torproject.org/stem.git/commit/?id=3670fe061278c934ff57c3ba3c9ba457f276ad9a
 Integ test tor logging is now at the debug runlevel]

 If you disagree with either of these changes or this doesn't do the trick
 for ya then just let me know.

 > Does stem have a way to log all it's control messages?

 Yup. As mentioned on irc trace runlevel logging provide request/reply logs
 for its control port. That is to say, exactly what we send and receive...

 {{{
 % ./run_tests.py --integ --log TRACE
 05/27/2019 16:02:23 [TRACE] Sent to tor: PROTOCOLINFO 1
 05/27/2019 16:02:23 [TRACE] Received from tor:
   250-PROTOCOLINFO 1
   250-AUTH METHODS=NULL
   250-VERSION Tor="0.4.1.0-alpha-dev"
   250 OK
 05/27/2019 16:02:23 [TRACE] Sent to tor: AUTHENTICATE
 05/27/2019 16:02:23 [TRACE] Received from tor: 250 OK
 05/27/2019 16:02:23 [TRACE] Sent to tor: SETEVENTS STATUS_SERVER SIGNAL
 CONF_CHANGED
 05/27/2019 16:02:23 [TRACE] Received from tor: 250 OK
 ... etc...
 }}}

 Feel free to reopen if you need anything else.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30592#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs