Permalink
Browse files

scrapyd.launcher: make SCRAPY_LOG_FILE and SCRAPY_FEED_URI optional

  • Loading branch information...
1 parent 35ef7de commit b33303779a520a0751648d63977f78890ca11d37 @pablohoffman pablohoffman committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 scrapyd/launcher.py
View
@@ -67,8 +67,8 @@ def __init__(self, slot, project, spider, job, env):
self.start_time = datetime.now()
self.end_time = None
self.env = env
- self.logfile = env['SCRAPY_LOG_FILE']
- self.itemsfile = env['SCRAPY_FEED_URI']
+ self.logfile = env.get('SCRAPY_LOG_FILE')
+ self.itemsfile = env.get('SCRAPY_FEED_URI')
@mohsinhijazee

mohsinhijazee Nov 20, 2012

The settings have FEED_URI whereas here it is picking up from SCRAPY_FEED_URI. I think this is kind of conflicting here.

@pablohoffman

pablohoffman Nov 20, 2012

Owner

When you access settings['FEED_URI'] Scrapy ends up looking at the SCRAPY_FEED_URI environment variable.

self.deferred = defer.Deferred()
def outReceived(self, data):

0 comments on commit b333037

Please sign in to comment.