Commit 69c18075 authored by JeanMichel FRANCOIS's avatar JeanMichel FRANCOIS

improve logging when blob is not found: include the filename requested

  which doesn't exists
parent 2ad61dba
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
Change History Change History
================ ================
4.0.0.dev (unreleased)
======================
- improve logging when blob is not found: include the filename requested
which doesn't exists
4.0.0a4 (2012-12-17) 4.0.0a4 (2012-12-17)
===================== =====================
......
...@@ -642,7 +642,7 @@ class BlobStorageMixin(object): ...@@ -642,7 +642,7 @@ class BlobStorageMixin(object):
""" """
filename = self.fshelper.getBlobFilename(oid, serial) filename = self.fshelper.getBlobFilename(oid, serial)
if not os.path.exists(filename): if not os.path.exists(filename):
raise POSKeyError("No blob file", oid, serial) raise POSKeyError("No blob file at %s" % filename, oid, serial)
return filename return filename
def openCommittedBlobFile(self, oid, serial, blob=None): def openCommittedBlobFile(self, oid, serial, blob=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment