Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Update error handling and logging for cache#879

Merged
cvgw merged 1 commit intoGoogleContainerTools:masterfrom
cvgw:u/cvgw/update_error_handling_and_logging_for_cache_retrieve
Nov 23, 2019
Merged

Update error handling and logging for cache#879
cvgw merged 1 commit intoGoogleContainerTools:masterfrom
cvgw:u/cvgw/update_error_handling_and_logging_for_cache_retrieve

Conversation

@cvgw
Copy link
Copy Markdown
Contributor

@cvgw cvgw commented Nov 22, 2019

Description

Previously we returned a low level file system error when checking for a cached image. Adds a more human friendly log message and explicit error handling.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Changes logging from
INFO[0004] Error while retrieving image from cache: getting file info: stat /cache/sha256:64463934b2c542cc5ae132d66a4deae2146e64183343f751a942dc9ede109fd2: no such file or directory
To
INFO[0004] Image python:3.7.5-alpine3.10 not found in cache

Previously we returned a low level file system error when checking for
a cached image. By adding a more human friendly log message and explicit
error handling we improve upon the user experience.
@cvgw cvgw merged commit bfd8562 into GoogleContainerTools:master Nov 23, 2019
@cvgw cvgw deleted the u/cvgw/update_error_handling_and_logging_for_cache_retrieve branch November 23, 2019 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants