From 6d30829b8442872da59ada093e3fcfc1f87403bd Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 25 Mar 2010 10:43:54 -0400 Subject: better 'Caught exception reading instance data' error --- cloudinit/boto_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/boto_utils.py b/cloudinit/boto_utils.py index 34f10688..5030e5fd 100644 --- a/cloudinit/boto_utils.py +++ b/cloudinit/boto_utils.py @@ -54,10 +54,10 @@ def retry_url(url, retry_on_404=True): except: pass #boto.log.exception('Caught exception reading instance data') - sys.stderr.write('Caught exception reading instance data') + sys.stderr.write('Caught exception reading instance data: %s\n' % url) time.sleep(2**i) #boto.log.error('Unable to read instance data, giving up') - sys.stderr.write('Caught exception reading instance data, giving up') + sys.stderr.write('Caught exception reading instance data, giving up\n') return '' def get_instance_metadata(version='latest'): -- cgit v1.2.3