scrapyd: log url where web console can be accesed

This commit is contained in:
Pablo Hoffman 2010-11-30 17:58:34 -02:00
parent 823fd9822c
commit a3d30c35fe
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
from twisted.application.service import Application
from twisted.application.internet import TimerService, TCPServer
from twisted.web import server
from twisted.python import log
from .interfaces import IEggStorage, IPoller, ISpiderScheduler, IEnvironment
from .launcher import Launcher
@ -28,6 +29,7 @@ def application(config):
launcher = Launcher(config, app)
timer = TimerService(5, poller.poll)
webservice = TCPServer(http_port, server.Site(Root(config, app)))
log.msg("Scrapyd web console available at http://localhost:%s/" % http_port)
launcher.setServiceParent(app)
timer.setServiceParent(app)