backport fix from oldstable stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 05 Apr 2011 13:23:47 +0200
branchstable
changeset 7179 00548a4b22a6
parent 7175 21acef4948f7 (current diff)
parent 7178 a62f24e1497e (diff)
child 7180 c031ea58d5f1
child 7181 e54ad6984e01
backport fix from oldstable
cwconfig.py
--- 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