Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error handling and logging for cache #879

Conversation

cvgw
Copy link
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants