# HG changeset patch # User Alexandre Fayolle # Date 1301985589 -7200 # Node ID a62f24e1497e953fbaed5894f6064a64f7ac0be3 # Parent 63f0bc2803546bf3c3b582707c421c2c697d1d92 fileConfig is in logging.config diff -r 63f0bc280354 -r a62f24e1497e cwconfig.py --- a/cwconfig.py Thu Mar 24 13:30:14 2011 +0100 +++ b/cwconfig.py Tue Apr 05 08:39:49 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