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 committed by Nikhil Komawar
parent fd99958b33
commit f6e41e9c0f
1 changed files with 3 additions and 3 deletions

View File

@ -713,9 +713,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 '