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:
Pablo Hoffman 2008-10-23 11:39:03 +00:00
parent 874ac0c256
commit 005044b0d8
1 changed files with 2 additions and 1 deletions

View File

@ -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)