[tor-commits] [bridgedb/master] Set a default logfile name, otherwise chowning chokes on it.

isis at torproject.org isis at torproject.org
Thu May 1 01:02:42 UTC 2014


commit b4cae6df49d334f15cd80f87149f1c38991ea298
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Apr 30 23:22:34 2014 +0000

    Set a default logfile name, otherwise chowning chokes on it.
---
 lib/bridgedb/util.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/util.py b/lib/bridgedb/util.py
index cc9c65d..00e4ce5 100644
--- a/lib/bridgedb/util.py
+++ b/lib/bridgedb/util.py
@@ -84,7 +84,7 @@ def configureLogging(cfg):
     level = getattr(cfg, 'LOGLEVEL', 'WARNING')
     logLevel = getattr(logging, level, 0)
     logStderr = getattr(cfg, 'LOG_TO_STDERR', False)
-    logfileName = getattr(cfg, 'LOGFILE', "")
+    logfileName = getattr(cfg, 'LOGFILE', "bridgedb.log")
     logfileCount = getattr(cfg, 'LOGFILE_COUNT', 3) - 1
     logfileRotateSize = getattr(cfg, 'LOGFILE_ROTATE_SIZE', 10000000)
     logThreads = getattr(cfg, 'LOG_THREADS', False)





More information about the tor-commits mailing list