Skip to content

Remove noisy console.error in the fetchWithError function#48518

Open
CyanoFresh wants to merge 1 commit intokeycloak:mainfrom
CyanoFresh:patch-1
Open

Remove noisy console.error in the fetchWithError function#48518
CyanoFresh wants to merge 1 commit intokeycloak:mainfrom
CyanoFresh:patch-1

Conversation

@CyanoFresh
Copy link
Copy Markdown

This pull request makes a small change to the fetchWithError utility function. It removes a noisy console.error statement that was previously logging error messages, HTTP status, and response data to the console.
We have our own (json) handler, and this lib should not alter our logging behavior

Copilot AI review requested due to automatic review settings April 27, 2026 16:42
@CyanoFresh CyanoFresh requested review from a team as code owners April 27, 2026 16:42
Copy link
Copy Markdown
Contributor

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 updates the fetchWithError helper in the Keycloak admin client JS library to avoid producing side-effect logging, keeping error reporting consistent with the consumer’s JSON logging/handling.

Changes:

  • Removed a console.error(...) statement emitted on non-OK HTTP responses.
  • Preserved existing behavior of parsing the response body and throwing NetworkError with { response, responseData }.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants