changeset 4786:6018617c55ab

Removing remains of "rlog" module, fixes db unit test debug logging via environment variable.
author Bernhard Reiter <bernhard@intevation.de>
date Sun, 05 May 2013 00:21:27 +0200
parents 81ab5ffa6863
children 4a017661e414
files CHANGES.txt doc/admin_guide.txt roundup/configuration.py test/db_test_base.py
diffstat 4 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed Apr 24 23:46:57 2013 -0400
+++ b/CHANGES.txt	Sun May 05 00:21:27 2013 +0200
@@ -51,6 +51,8 @@
 
 Fixed:
 
+- Removed some old left over "rlog" references in documentation and code.
+  Makes the debugging.txt advise for the database unit tests work again.
 - Fixed OpenPGP support for modern versions of libgpgme. (Bernhard Reiter)
 - Restored compatibility with old style trackers (anatoly techtonik)
 - Make roundup play nice with setup tools (for using with virtualenv)
--- a/doc/admin_guide.txt	Wed Apr 24 23:46:57 2013 -0400
+++ b/doc/admin_guide.txt	Sun May 05 00:21:27 2013 +0200
@@ -42,9 +42,7 @@
 =======================================================
 
 You may configure where Roundup logs messages in your tracker's config.ini
-file. Roundup will use the standard Python (2.3+) logging implementation
-when available. If not, then a very basic logging implementation will be used
-(see BasicLogging in the roundup.rlog module for details).
+file. Roundup will use the standard Python (2.3+) logging implementation.
 
 Configuration for standard "logging" module:
  - tracker configuration file specifies the location of a logging
--- a/roundup/configuration.py	Wed Apr 24 23:46:57 2013 -0400
+++ b/roundup/configuration.py	Sun May 05 00:21:27 2013 +0200
@@ -1305,9 +1305,6 @@
     Core config has a predefined layout (see the SETTINGS structure),
     supports loading of old-style pythonic configurations and holds
     three additional attributes:
-        logging:
-            instance logging engine, from standard python logging module
-            or minimalistic logger implemented in Roundup
         detectors:
             user-defined configuration for detectors
         ext:
--- a/test/db_test_base.py	Wed Apr 24 23:46:57 2013 -0400
+++ b/test/db_test_base.py	Sun May 05 00:21:27 2013 +0200
@@ -16,6 +16,7 @@
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 
 import unittest, os, shutil, errno, imp, sys, time, pprint, base64, os.path
+import logging
 import gpgmelib
 from email.parser import FeedParser
 
@@ -34,7 +35,6 @@
 config.RDBMS_USER = "rounduptest"
 config.RDBMS_PASSWORD = "rounduptest"
 config.RDBMS_TEMPLATE = "template0"
-#config.logging = MockNull()
 # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests
 config.MAIL_DOMAIN = "your.tracker.email.domain.example"
 config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/"
@@ -128,10 +128,8 @@
 
 
 if os.environ.has_key('LOGGING_LEVEL'):
-    from roundup import rlog
-    config.logging = rlog.BasicLogging()
-    config.logging.setLevel(os.environ['LOGGING_LEVEL'])
-    config.logging.getLogger('roundup.hyperdb').setFormat('%(message)s')
+    logger = logging.getLogger('roundup.hyperdb')
+    logger.setLevel(os.environ['LOGGING_LEVEL'])
 
 class commonDBTest(MyTestCase):
     def setUp(self):

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