Commit 4af31657 authored by Alexandre Fayolle's avatar Alexandre Fayolle
Browse files

fileConfig is in logging.config

--HG--
branch : oldstable
parent 63f0bc280354
...@@ -139,6 +139,7 @@ _ = unicode ...@@ -139,6 +139,7 @@ _ = unicode
import sys import sys
import os import os
import logging import logging
import logging.config
from smtplib import SMTP from smtplib import SMTP
from threading import Lock from threading import Lock
from os.path import (exists, join, expanduser, abspath, normpath, from os.path import (exists, join, expanduser, abspath, normpath,
...@@ -1098,7 +1099,7 @@ the repository', ...@@ -1098,7 +1099,7 @@ the repository',
# read a config file if it exists # read a config file if it exists
logconfig = join(self.apphome, 'logging.conf') logconfig = join(self.apphome, 'logging.conf')
if exists(logconfig): if exists(logconfig):
logging.fileConfig(logconfig) logging.config.fileConfig(logconfig)
def available_languages(self, *args): def available_languages(self, *args):
"""return available translation for an instance, by looking for """return available translation for an instance, by looking for
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment