commit 1e481bf61f685a5a8fb3cfc2aa9cf6f6272c11d5 Author: Isis Lovecruft isis@torproject.org Date: Wed Apr 23 07:45:23 2014 +0000
Set the logfile path by default, or else we get a ValueError. --- 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 691b9bc..8ca9aed 100644 --- a/lib/bridgedb/util.py +++ b/lib/bridgedb/util.py @@ -80,7 +80,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)