summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-11-06 14:56:57 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-11-06 14:57:09 -0200
commitda869f1efe3f623a52dd5a432f984f7780ea6149 (patch)
treef84c8365d4cb8a9ce3839be470363147e73c8fa8 /service/pixelated/config
parent870e5ce9da3b786c590cdee2ead02bbbdafcce3d (diff)
improving log and logging to file on functional tests
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/app_factory.py6
1 files changed, 2 insertions, 4 deletions
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()