Skip to content

chore: reduce check permission log level to warn#78

Open
enzomerca wants to merge 1 commit intomasterfrom
chore/B2BTEAM-1958-get-permission-error-logs
Open

chore: reduce check permission log level to warn#78
enzomerca wants to merge 1 commit intomasterfrom
chore/B2BTEAM-1958-get-permission-error-logs

Conversation

@enzomerca
Copy link
Contributor

What problem is this solving?

The call to get the user permissions can fail for multiple reasons unrelated to app failure. In such cases, we already have proper logs in the storefront-permissions app.
Still, we want to maintain a log here in case we need to deep dive into an issue in the future.
Therefore, this PR reduces the log level to warn.

@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Nov 25, 2025

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

@github-actions
Copy link

Messages
📖 ❤️ Thanks!
📖

🎉 PR additions = 4, PR deletions = 1

Generated by 🚫 dangerJS against cee64c9

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces the log level from error to warn for permission check failures in the withPermissions directive. This change acknowledges that permission check failures can occur for reasons unrelated to application errors, as these are already properly logged in the storefront-permissions app.

Key changes:

  • Changed logger.error to logger.warn in the permission check error handler
  • Updated CHANGELOG.md to document this change

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
node/resolvers/directives/withPermissions.ts Changed log level from error to warn for permission check failures
CHANGELOG.md Added entry documenting the log level reduction under "Changed" section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants