[tor-commits] [ooni-probe/master] Remove test for W_OK on logfile
art at torproject.org
art at torproject.org
Sat Nov 23 11:11:41 UTC 2013
commit 172df77d428100ca823c374c99edc75534b7d0b6
Author: aagbsn <aagbsn at extc.org>
Date: Fri Nov 22 14:17:32 2013 +0000
Remove test for W_OK on logfile
Removes the test for W_OK on logfile because it fails when the logfile
does not exist, and we do not do a similar test for the default
ooniprobe.log filename.
---
ooni/utils/log.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/ooni/utils/log.py b/ooni/utils/log.py
index 3aedc17..036a4b4 100644
--- a/ooni/utils/log.py
+++ b/ooni/utils/log.py
@@ -30,9 +30,6 @@ def start(logfile=None, application_name="ooniprobe"):
if not logfile:
logfile = config.basic.logfile
- if not (os.access(logfile, os.W_OK)):
- logfile = "ooniprobe.log"
-
log_folder = os.path.dirname(logfile)
log_filename = os.path.basename(logfile)
More information about the tor-commits
mailing list