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

2019-05-28 Thread Tor Bug Tracker & Wiki
#30592: How do I make stem log info-level to test/data/tor_log?
---+
 Reporter:  teor   |  Owner:  atagar
 Type:  defect | Status:  closed
 Priority:  Medium |  Milestone:  Tor: 0.4.1.x-final
Component:  Core Tor/Stem  |Version:
 Severity:  Normal | Resolution:  implemented
 Keywords:  tor-ci-fail-sometimes  |  Actual Points:  0.1
Parent ID:  #30591 | Points:  0.1
 Reviewer: |Sponsor:
---+
Changes (by teor):

 * points:   => 0.1
 * actualpoints:   => 0.1


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-27 Thread Tor Bug Tracker & Wiki
#30592: How do I make stem log info-level to test/data/tor_log?
---+
 Reporter:  teor   |  Owner:  atagar
 Type:  defect | Status:  closed
 Priority:  Medium |  Milestone:  Tor: 0.4.1.x-final
Component:  Core Tor/Stem  |Version:
 Severity:  Normal | Resolution:  implemented
 Keywords:  tor-ci-fail-sometimes  |  Actual Points:
Parent ID:  #30591 | Points:
 Reviewer: |Sponsor:
---+
Changes (by atagar):

 * status:  new => closed
 * resolution:   => implemented


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-27 Thread Tor Bug Tracker & Wiki
#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: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-26 Thread Tor Bug Tracker & Wiki
#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 teor):

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

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-26 Thread Tor Bug Tracker & Wiki
#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 teor):

 Replying to [comment:1 atagar]:
 > * Provide a config option to add arbitrary torrc lines (this way you
 could add 'Log info /my/path' or customize the test torrc in any way you'd
 like).

 I just talked with nickm on IRC. We want to capture all the controller
 messages from tor.

 So that means we'd like "Log [control]debug /path/to/file", or any other
 arbitrary torrc line.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-26 Thread Tor Bug Tracker & Wiki
#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 teor):

 Replying to [comment:1 atagar]:
 > * Provide a config option or environment variable to customize the
 runlevel.

 Let's provide a way to customise the log level in the file.

 If we ever need arbitrary torrc lines, we can do that change later.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-24 Thread Tor Bug Tracker & Wiki
#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. The log level of tor_log is not presently configurable...

 https://gitweb.torproject.org/stem.git/tree/test/runner.py#n72

 I'd be happy to go in several directions with this. What is your
 preference?

 * Change the default log runlevel to info.
 * Provide a config option or environment variable to customize the
 runlevel.
 * Provide a config option to add arbitrary torrc lines (this way you could
 add 'Log info /my/path' or customize the test torrc in any way you'd
 like).

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

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

2019-05-23 Thread Tor Bug Tracker & Wiki
#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 |   Keywords:  tor-ci-fail-sometimes
Actual Points: |  Parent ID:  #30591
   Points: |   Reviewer:
  Sponsor: |
---+---
 I ran the stem tests with `--log info`, but that just makes stem log info-
 level errors to the terminal. It doesn't change test/data/tor_log.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs