From da869f1efe3f623a52dd5a432f984f7780ea6149 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 6 Nov 2014 14:56:57 -0200 Subject: improving log and logging to file on functional tests --- service/pixelated/config/app_factory.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'service/pixelated/config/app_factory.py') diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index c479a913..8b256550 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -33,7 +33,9 @@ from leap.common.events import ( register, events_pb2 as proto ) +from twisted.web.iweb import IAccessLogFormatter from twisted.web.server import Site +from zope.interface import provider def init_index_and_remove_dupes(querier, search_engine, mail_service): @@ -130,10 +132,6 @@ def init_app(app): def create_app(app): - from twisted.python import log - import sys - log.startLogging(sys.stdout) - reactor.listenTCP(3333, Site(app.resource()), interface='localhost') reactor.callWhenRunning(lambda: init_app(app)) reactor.run() -- cgit v1.2.3