From 11436b4e5f37054313be71fa6189e8f706faf461 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Wed, 19 Oct 2016 17:04:13 -0200 Subject: Removed plugins bootstrap from the manhole option --- service/pixelated/application.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'service') diff --git a/service/pixelated/application.py b/service/pixelated/application.py index 2b97f5b3..d4d8c280 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -28,8 +28,6 @@ from twisted.cred.checkers import AllowAnonymousAccess, FilePasswordDB from twisted.internet import defer from twisted.internet import reactor from twisted.internet import ssl -from twisted.internet.task import LoopingCall -from twisted.plugin import getPlugins from pixelated.adapter.welcome_mail import add_welcome_mail from pixelated.config import arguments @@ -41,7 +39,6 @@ from pixelated.config.site import PixelatedSite from pixelated.resources.auth import LeapPasswordChecker, PixelatedRealm, PixelatedAuthSessionWrapper, SessionChecker from pixelated.resources.login_resource import LoginResource from pixelated.resources.root_resource import RootResource -from pixelated.support.loglinegenerator import ILogLineGenerator log = Logger() @@ -108,18 +105,6 @@ def initialize(): reactor.run() -def start_plugins(): - log.info('start_plugins') - - def logGeneratedLines(): - for p in getPlugins(ILogLineGenerator): - logLine = p.getLogLine() - if logLine is not None: - log.debug(logLine) - - LoopingCall(logGeneratedLines).start(1) - - def add_top_level_system_callbacks(deferred, services_factory): def _quit_on_error(failure): @@ -210,8 +195,6 @@ def start_site(config, resource): if config.manhole: log.info('Starting the manhole on port 8008') - start_plugins() - multiService = manhole_tap.makeService(dict(namespace=globals(), telnetPort='8008', sshPort='8009', -- cgit v1.2.3