comparison twisted/plugins/libervia.py @ 438:582c435dab6b

server side: new log system is used
author Goffi <goffi@goffi.org>
date Thu, 08 May 2014 17:21:30 +0200
parents fa3b65b68971
children eca26481176f
comparison
equal deleted inserted replaced
437:fa3b65b68971 438:582c435dab6b
26 pdb.set_trace = ipdb.set_trace 26 pdb.set_trace = ipdb.set_trace
27 pdb.post_mortem = ipdb.post_mortem 27 pdb.post_mortem = ipdb.post_mortem
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.
32 from constants import Const as C
33 from sat.core import log
34 log.satConfigure(C.LOG_BACKEND_TWISTED, C)
35
31 from zope.interface import implements 36 from zope.interface import implements
32 37
33 from twisted.python import usage 38 from twisted.python import usage
34 from twisted.plugin import IPlugin 39 from twisted.plugin import IPlugin
35 from twisted.application.service import IServiceMaker 40 from twisted.application.service import IServiceMaker
36 41
37 from xdg.BaseDirectory import save_config_path
38 from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError 42 from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
39 from sat.core.constants import Const as C 43 from sat.core.constants import Const as C
40 try: 44 try:
41 from libervia_server import Libervia 45 from libervia_server import Libervia
42 opt_params = Libervia.OPT_PARAMETERS 46 opt_params = Libervia.OPT_PARAMETERS