Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Conversation

PedroEscudero
Copy link
Contributor

Fix the display of errors on console when there is a search cancelation

})
.catch((error) => {
if(error.response === undefined){
console.info("Request Canceled");
Copy link
Member

Choose a reason for hiding this comment

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

This line is dangerous. Basically because you're logging always, even in production, and this library is used in NodeJS as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It logs at info level. It should be a responsibility of the developer to establish if they want to output it.

Copy link
Member

@mmoreram mmoreram left a comment

Choose a reason for hiding this comment

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

The commit needs to be signed

@PedroEscudero PedroEscudero deleted the fix-search-cancel-error branch December 26, 2018 10:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants