Add extra logging to figure out why checksums don't match in prod.
This commit is contained in:
parent
ac80f1a123
commit
70a9e79157
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue