Add a bunch of logging to the data model caching mechanism

Should help us debug any potential issues
This commit is contained in:
Joseph Schorr 2017-12-14 14:30:59 -05:00
parent 60bc655695
commit 9e16596854
2 changed files with 15 additions and 1 deletions

View file

@ -43,7 +43,7 @@ def _get_repository_blob(namespace_name, repo_name, digest):
return model.get_blob_by_digest(namespace_name, repo_name, digest)
blob_cache_key = cache_key.for_repository_blob(namespace_name, repo_name, digest)
return model_cache.retrieve(blob_cache_key, load_blob)
return model_cache.retrieve(blob_cache_key, load_blob)
@v2_bp.route(BLOB_DIGEST_ROUTE, methods=['HEAD'])