# HG changeset patch # User Alexandre Fayolle # Date 1302002627 -7200 # Node ID 00548a4b22a6ddd2c48980cb54972f592b2bf173 # Parent 21acef4948f75b276525bf9de23ee9af6419983f# Parent a62f24e1497e953fbaed5894f6064a64f7ac0be3 backport fix from oldstable diff -r 21acef4948f7 -r 00548a4b22a6 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