Skip to content

Commit

Permalink
Removes logging of location uri
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Nikhil Komawar committed Feb 10, 2014
1 parent 1a9e0e9 commit 108f0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glance/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ def get_data(self):

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 '
Expand Down

0 comments on commit 108f0e0

Please # to comment.