From 78803c50eb4f9a9973dc608b797550f29b8ac8a4 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 8 Jun 2014 12:59:23 -0700 Subject: [PATCH] Include URL in error message When the processor can't load a URI it logs a message, but the message does not include the URI that was a problem, which makes troubleshooting difficult. Change-Id: I96533a924f7b450eb41cf738de8f4064f7089316 --- stackalytics/processor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackalytics/processor/utils.py b/stackalytics/processor/utils.py index 3bd76bfdf..3b620d512 100644 --- a/stackalytics/processor/utils.py +++ b/stackalytics/processor/utils.py @@ -89,7 +89,7 @@ def read_uri(uri): fd.close() return raw except Exception as e: - LOG.warn('Error while reading uri: %s' % e) + LOG.warn('Error while reading uri(%s): %s' % (uri, e)) def read_json_from_uri(uri):