Permalink
Browse files

Add logging for errors.

  • Loading branch information...
rosner authored and Daniel Truemper committed Feb 24, 2012
1 parent 3bdb3dc commit 422946dc04de170e32393fb674667908c9e2ccea
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/spyder/processor/fetcher.py
@@ -167,6 +167,8 @@ def handle_server_response(response):
extract_info_from_response(response, msg)
LOG.info("proc.fetch::response for %s (took '%s'ms)" %
(msg.curi.url, response.request_time))
+ if response.code >= 400:
+ LOG.error("proc.fetch::response error: %s", response)
out_stream.send_multipart(msg.serialize())
return handle_server_response

0 comments on commit 422946d

Please sign in to comment.