diff 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
line wrap: on
line diff
--- a/twisted/plugins/libervia.py	Tue May 06 23:08:08 2014 +0200
+++ b/twisted/plugins/libervia.py	Thu May 08 17:21:30 2014 +0200
@@ -28,13 +28,17 @@
     except ImportError:
         pass
 
+# XXX: We need to configure logs before any log method is used, so here is the best place.
+from constants import Const as C
+from sat.core import log
+log.satConfigure(C.LOG_BACKEND_TWISTED, C)
+
 from zope.interface import implements
 
 from twisted.python import usage
 from twisted.plugin import IPlugin
 from twisted.application.service import IServiceMaker
 
-from xdg.BaseDirectory import save_config_path
 from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
 from sat.core.constants import Const as C
 try: