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

chore(core): improve the logging of assets feature #8615

Merged
merged 11 commits into from
Sep 23, 2023
Merged

chore(core): improve the logging of assets feature #8615

merged 11 commits into from
Sep 23, 2023

Conversation

alexanderniebuhr
Copy link
Member

Seeing a lot of confusion about the noop logging. This issue has come up multiple times on Discord already (e.g., Discord link). I believe we should adjust the logging to avoid confusing users.

Changes

  • Changed the logging approach in validateAssetsFeature
  • Removed the error log stating that the assets feature is unsupported
  • Lowered the severity of the log from error to warning for sharp or squoosh incompatibility. Since we automatically replace these with noop, the user shouldn't need to make any manual changes; therefore, an error is too severe.
  • Reworded the warning log about automatically switching to noop

For more details, see self-review comments

Docs

/cc @withastro/maintainers-docs for feedback!

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: db9058f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 21, 2023
Copy link
Member Author

@alexanderniebuhr alexanderniebuhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-review for background context

packages/astro/src/integrations/index.ts Outdated Show resolved Hide resolved
packages/astro/src/integrations/index.ts Show resolved Hide resolved
packages/astro/src/integrations/index.ts Outdated Show resolved Hide resolved
alexanderniebuhr and others added 2 commits September 21, 2023 08:52
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good to me. Let's wait for Sarah's approval

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have a winner! I am sufficiently less frightened about my images as a reader, so docs is signing off!

@alexanderniebuhr alexanderniebuhr changed the title improve assets logging chore(core): improve the logging of assets feature Sep 23, 2023
@alexanderniebuhr alexanderniebuhr merged commit 4c4ad9d into withastro:main Sep 23, 2023
@alexanderniebuhr alexanderniebuhr deleted the alexanderniebuhr-improve-assets-logging branch September 23, 2023 16:15
@astrobot-houston astrobot-houston mentioned this pull request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants