diff roundup/instance.py @ 2584:eeadb59213d8

allow override of log level when no filename specified
author Richard Jones <richard@users.sourceforge.net>
date Mon, 19 Jul 2004 01:49:26 +0000
parents fa50e1347397
children d344419d599d
line wrap: on
line diff
--- a/roundup/instance.py	Mon Jul 19 01:47:57 2004 +0000
+++ b/roundup/instance.py	Mon Jul 19 01:49:26 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: instance.py,v 1.14 2004-06-08 05:29:18 richard Exp $
+# $Id: instance.py,v 1.15 2004-07-19 01:49:26 richard Exp $
 
 '''Tracker handling (open tracker).
 
@@ -101,14 +101,14 @@
             except ImportError, msg:
                 raise TrackerError, 'Python logging module unavailable: %s'%msg
             config.logging.fileConfig(config.LOGGING_CONFIG)
-        elif hasattr(config, 'LOGGING_FILENAME'):
+        else:
             config.logging = rlog.BasicLogging()
-            config.logging.setFile(config.LOGGING_FILENAME)
+            if hasattr(config, 'LOGGING_FILENAME'):
+                config.logging.setFile(config.LOGGING_FILENAME)
             if hasattr(config, 'LOGGING_LEVEL'):
                 config.logging.setLevel(config.LOGGING_LEVEL)
-        else:
-            config.logging = rlog.BasicLogging()
-            config.logging.setLevel('ERROR')
+            else:
+                config.logging.setLevel('ERROR')
 
         return tracker
 

Roundup Issue Tracker: http://roundup-tracker.org/