cwconfig.py
branchstable
changeset 7179 00548a4b22a6
parent 7134 01544b6d98fa
parent 7178 a62f24e1497e
child 7264 9ed9e1d77ef3
--- a/cwconfig.py	Tue Apr 05 11:19:12 2011 +0200
+++ b/cwconfig.py	Tue Apr 05 13:23:47 2011 +0200
@@ -139,6 +139,7 @@
 import sys
 import os
 import logging
+import logging.config
 from smtplib import SMTP
 from threading import Lock
 from os.path import (exists, join, expanduser, abspath, normpath,
@@ -1098,7 +1099,7 @@
         # read a config file if it exists
         logconfig = join(self.apphome, 'logging.conf')
         if exists(logconfig):
-            logging.fileConfig(logconfig)
+            logging.config.fileConfig(logconfig)
 
     def available_languages(self, *args):
         """return available translation for an instance, by looking for