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
This commit is contained in:
Monty Taylor
2014-06-08 12:59:23 -07:00
parent d7d92cf794
commit 78803c50eb

View File

@@ -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):