changeset 443:eca26481176f

use of new config module for logs
author Goffi <goffi@goffi.org>
date Wed, 14 May 2014 12:52:27 +0200
parents 17259c2ff96f
children b64e528fb524
files browser_side/logging.py twisted/plugins/libervia.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/logging.py	Wed May 14 12:24:38 2014 +0200
+++ b/browser_side/logging.py	Wed May 14 12:52:27 2014 +0200
@@ -20,7 +20,7 @@
 
 from __pyjamas__ import console
 from constants import Const as C
-from sat.core import log
+from sat.core import log # XXX: we don't use core.log_config here to avoid the impossible imports in pyjamas
 
 
 class LiberviaLogger(log.Logger):
--- a/twisted/plugins/libervia.py	Wed May 14 12:24:38 2014 +0200
+++ b/twisted/plugins/libervia.py	Wed May 14 12:52:27 2014 +0200
@@ -30,8 +30,8 @@
 
 # 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 sat.core import log_config
+log_config.satConfigure(C.LOG_BACKEND_TWISTED, C)
 
 from zope.interface import implements