[tor-commits] [stem/master] Logging tor's output during integ test runs
atagar at torproject.org
atagar at torproject.org
Sun Sep 15 00:22:23 UTC 2013
commit fb3907913b09770ed6de5ff8914553e424fa8f47
Author: Damian Johnson <atagar at torproject.org>
Date: Sat Sep 14 13:53:33 2013 -0700
Logging tor's output during integ test runs
Saving tor's logging output to disk to help with troubleshooting issues.
---
test/runner.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/runner.py b/test/runner.py
index cccc587..e8d77d1 100644
--- a/test/runner.py
+++ b/test/runner.py
@@ -71,6 +71,8 @@ BASE_TORRC = """# configuration for stem integration tests
DataDirectory %%s
SocksListenAddress %s:%i
DownloadExtraInfo 1
+Log notice stdout
+Log notice file %%s/tor_log
""" % (SOCKS_HOST, SOCKS_PORT)
# singleton Runner instance
@@ -298,7 +300,7 @@ class Runner(object):
self._tor_cmd = tor_cmd
self._custom_opts = extra_torrc_opts
- self._torrc_contents = BASE_TORRC % data_dir_path
+ self._torrc_contents = BASE_TORRC % (data_dir_path, data_dir_path)
if extra_torrc_opts:
self._torrc_contents += "\n".join(extra_torrc_opts) + "\n"
More information about the tor-commits
mailing list