[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [oonib/master] Write to a tor logfile
commit 93edf6df743f263c79567ce15a76c5baf9d2d7f2
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Sat Sep 20 15:02:04 2014 +0200
Write to a tor logfile
---
oonib/onion.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/oonib/onion.py b/oonib/onion.py
index 1950a41..9c94d02 100644
--- a/oonib/onion.py
+++ b/oonib/onion.py
@@ -74,6 +74,9 @@ def startTor(torconfig):
torconfig.DataDirectory = os.path.abspath(config.main.tor_datadir)
else:
raise Exception
+
+ tor_log_file = os.path.join(torconfig.DataDirectory, "tor.log")
+ torconfig.Log = ["notice stdout", "notice file %s" % tor_log_file]
torconfig.save()
if not hasattr(torconfig, 'ControlPort'):
control_port = int(randomFreePort())
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits