Mercurial > libervia-web
comparison twisted/plugins/libervia.py @ 443:eca26481176f
use of new config module for logs
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 14 May 2014 12:52:27 +0200 |
parents | 582c435dab6b |
children | c406e46fe9c0 |
comparison
equal
deleted
inserted
replaced
442:17259c2ff96f | 443:eca26481176f |
---|---|
28 except ImportError: | 28 except ImportError: |
29 pass | 29 pass |
30 | 30 |
31 # XXX: We need to configure logs before any log method is used, so here is the best place. | 31 # XXX: We need to configure logs before any log method is used, so here is the best place. |
32 from constants import Const as C | 32 from constants import Const as C |
33 from sat.core import log | 33 from sat.core import log_config |
34 log.satConfigure(C.LOG_BACKEND_TWISTED, C) | 34 log_config.satConfigure(C.LOG_BACKEND_TWISTED, C) |
35 | 35 |
36 from zope.interface import implements | 36 from zope.interface import implements |
37 | 37 |
38 from twisted.python import usage | 38 from twisted.python import usage |
39 from twisted.plugin import IPlugin | 39 from twisted.plugin import IPlugin |