Add extra logging to figure out why checksums don't match in prod.

This commit is contained in:
yackob03 2013-10-02 14:06:12 -04:00
parent ac80f1a123
commit 70a9e79157

View file

@ -168,6 +168,8 @@ def put_image_checksum(namespace, repository, image_id):
if err:
abort(err)
if checksum not in session.get('checksum', []):
logger.debug('session checksums: %s' % session.get('checksum', []))
logger.debug('client supplied checksum: %s' % checksum)
logger.debug('put_image_layer: Wrong checksum')
abort(400) #'Checksum mismatch')
# Checksum is ok, we remove the marker