Removes logging of location uri

This patch removes logging of sensitive store location uri, which
is logged when an exception occurs while trying to get the object
from the store or due to a failure in getting the store api due to
unauthorized context.

fixes bug 1275062

Change-Id: I679baa0897f242f4b8372c9c1c7ab28ae811f5e5
This commit is contained in:
Nikhil Komawar 2014-02-05 18:39:53 -05:00
parent 1a9e0e94c3
commit 108f0e04ad
1 changed files with 3 additions and 3 deletions

View File

@ -658,9 +658,9 @@ class ImageProxy(glance.domain.proxy.Image):
return data
except Exception as e:
LOG.warn(_('Get image %(id)s data from %(loc)s '
'failed: %(err)s.') % {'id': self.image.image_id,
'loc': loc, 'err': e})
LOG.warn(_('Get image %(id)s data failed: '
'%(err)s.') % {'id': self.image.image_id,
'err': e})
err = e
# tried all locations
LOG.error(_('Glance tried all locations to get data for image %s '