Opened 6 months ago

Last modified 5 months ago

#25632 new enhancement

Improve stem torrc logging options for integration testing

Reported by: dmr Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords: testing easy
Cc: dmr Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

As suggested by teor in #25631, utilizing the following options in torrc will improve logging for the purpose of integration testing in stem:

  • ProtocolWarnings 1
  • SafeLogging 0
  • LogTimeGranularity 1

The former (ProtocolWarnings 1) should be used in general with a local test relay (i.e. during development, independent of integration testing), and the log [warn]ings surfaced automatically in integration tests, which I believe currently isn't the case. The [warn]ings should potentially be treated as test failures when emitted (with exception of tests that directly try to violate the protocol, and check that Tor responds as such).

The latter two will help with debugging when a problem is encountered.

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by atagar

Keywords: testing easy added
Note: See TracTickets for help on using tickets.