mirror of https://github.com/scrapy/scrapy.git
web console: added support for logging to a different file using WEBCONSOLE_LOGFILE setting
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40335
This commit is contained in:
parent
874ac0c256
commit
005044b0d8
|
|
@ -63,7 +63,8 @@ class WebConsole(server.Site):
|
|||
if not settings.getbool('WEBCONSOLE_ENABLED'):
|
||||
return
|
||||
|
||||
server.Site.__init__(self, WebConsoleResource())
|
||||
logfile = settings['WEBCONSOLE_LOGFILE']
|
||||
server.Site.__init__(self, WebConsoleResource(), logPath=logfile)
|
||||
self.noisy = False
|
||||
port = settings.getint('WEBCONSOLE_PORT')
|
||||
scrapyengine.listenTCP(port, self)
|
||||
|
|
|
|||
Loading…
Reference in New Issue