comparison src/sat.tac @ 1021:a836b6da2c5c

core (log): moved configuration to core.log_config; this avoid import issues with pyjamas.
author Goffi <goffi@goffi.org>
date Wed, 14 May 2014 12:51:24 +0200
parents e40d9858cb83
children
comparison
equal deleted inserted replaced
1020:adbde4a3a52f 1021:a836b6da2c5c
32 from twisted.internet import glib2reactor 32 from twisted.internet import glib2reactor
33 glib2reactor.install() 33 glib2reactor.install()
34 34
35 # XXX: We need to configure logs before any log method is used, so here is the best place. 35 # XXX: We need to configure logs before any log method is used, so here is the best place.
36 from sat.core.constants import Const as C 36 from sat.core.constants import Const as C
37 from sat.core import log 37 from sat.core import log_config
38 log.satConfigure(C.LOG_BACKEND_TWISTED) 38 log_config.satConfigure(C.LOG_BACKEND_TWISTED)
39 39
40 # XXX: SAT must be imported after log configuration, because it write stuff to logs 40 # XXX: SAT must be imported after log configuration, because it write stuff to logs
41 from sat.core.sat_main import SAT 41 from sat.core.sat_main import SAT
42 42
43 43