primitivus: use of new logging system:
- default output is \\memory
- logs can be seen with :messages command
- now useless writeLog method has been removed
This commit is contained in:
parent
468206e529
commit
39989cc985
1 changed files with 80 additions and 43 deletions
|
|
@ -22,8 +22,9 @@ from twisted.internet import glib2reactor
|
|||
glib2reactor.install()
|
||||
|
||||
# XXX: We need to configure logs before any log method is used, so here is the best place.
|
||||
from sat.core.constants import Const as C
|
||||
from sat.core import log
|
||||
log.satConfigure()
|
||||
log.satConfigure(C.LOG_BACKEND_TWISTED)
|
||||
|
||||
# XXX: SAT must be imported after log configuration, because it write stuff to logs
|
||||
from sat.core.sat_main import SAT
|
||||
|
|
|
|||
Loading…
Reference in a new issue