[tor-commits] [sbws/master] Create log dir

pastly at torproject.org pastly at torproject.org
Thu Aug 9 14:21:20 UTC 2018


commit 52b3d1dd86611931343a843b0d86c909ff65d983
Author: juga0 <juga at riseup.net>
Date:   Tue Jul 24 18:54:14 2018 +0000

    Create log dir
---
 sbws/util/stem.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbws/util/stem.py b/sbws/util/stem.py
index 8e57f96..232be2a 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -120,6 +120,7 @@ def _init_controller_socket(socket):
 def launch_tor(conf):
     assert isinstance(conf, ConfigParser)
     os.makedirs(conf.getpath('tor', 'datadir'), mode=0o700, exist_ok=True)
+    os.makedirs(conf.getpath('tor', 'log'), exist_ok=True)
     os.makedirs(conf.getpath('tor', 'run_dpath'), mode=0o700, exist_ok=True)
     # Bare minimum things, more or less
     torrc = copy.deepcopy(TORRC_STARTING_POINT)





More information about the tor-commits mailing list