Improve stem torrc logging options for integration testing
As suggested by teor in #25631 (closed), 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.