[tor-commits] [sbws/master] Fix typo to allow logging to file

juga at torproject.org juga at torproject.org
Mon Oct 8 08:14:49 UTC 2018


commit 84a09d06baf99c94476a66cf46c6531399f4c5a2
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Fri Oct 5 15:32:05 2018 -0400

    Fix typo to allow logging to file
---
 sbws/util/fs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/util/fs.py b/sbws/util/fs.py
index f61f07f..e5e7173 100644
--- a/sbws/util/fs.py
+++ b/sbws/util/fs.py
@@ -65,7 +65,7 @@ def sbws_required_disk_space(conf):
     space_log_files = 0
     if conf.getboolean('logging', 'to_file'):
         size_log_file = conf.getint('logging', 'to_file_max_bytes')
-        num_log_files = conf.geting('logging', 'to_file_num_backups')
+        num_log_files = conf.getint('logging', 'to_file_num_backups')
         space_log_files = size_log_file * num_log_files
     text_dict['mb_log'] = space_log_files
     # roughly, size of a current tor dir





More information about the tor-commits mailing list