Scrapy, a fast high-level web crawling & scraping framework for Python.
scrapyd: log errors in API calls to the scrapyd log
Pablo Hoffman241abcb8aaa3
diff --git a/scrapyd/webservice.py b/scrapyd/webservice.pyindex 088253749..0757e7e20 100644--- a/scrapyd/webservice.py+++ b/scrapyd/webservice.py@@ -2,6 +2,8 @@ import tracebackimport uuidfrom cStringIO import StringIO+from twisted.python import log+from scrapy.utils.txweb import JsonResourcefrom .utils import get_spider_list@@ -17,6 +19,7 @@ class WsResource(JsonResource):except Exception, e:if self.root.debug:return traceback.format_exc()+ log.err()r = {"status": "error", "message": str(e)}return self.render_object(r, txrequest)