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

[Issue-51] Log warnings when fallback image is delivered. #52

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

mpospese
Copy link
Contributor

Introduction

When either ImageAsset or SystemImage fails to load an image and delivers the fallback image instead we should log a warning to the console to alert the developer.

Purpose

Fix #51: Optionally log warning to console when delivering the fallback image.

Scope

  • Add logging to ImageAsset.image
  • Add logging to SystemImage.image
  • Add a logger singleton plus a flag to optionally silence it.
  • Unit tests

📈 Coverage

Code

100%
image

Documentation

100%
image

@mpospese mpospese merged commit 06398c4 into main Mar 17, 2023
@mpospese mpospese deleted the issue/51-log-warnings-on-image-fallback branch March 17, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Log warnings in ImageAsset.image and SystemImage.image when loadImage() fails
2 participants