From 5f899aa4ec7cbb98948f108a6cc6a5e82857ab4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Libor=20Nenad=C3=A1l?= Date: Sun, 2 Dec 2012 23:29:26 +0100 Subject: [PATCH] add error details when image pipeline fails --- scrapy/contrib/pipeline/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/contrib/pipeline/images.py b/scrapy/contrib/pipeline/images.py index fa4125520..477559095 100644 --- a/scrapy/contrib/pipeline/images.py +++ b/scrapy/contrib/pipeline/images.py @@ -198,7 +198,7 @@ class ImagesPipeline(MediaPipeline): key = self.image_key(request.url) checksum = self.image_downloaded(response, request, info) except ImageException, ex: - log.err('image_downloaded hook failed', + log.err('image_downloaded hook failed: %s' % ex, level=log.WARNING, spider=info.spider) raise except Exception: