Skip to content

Improve error logging by logging full error object #6464

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nitin-Mohapatra
Copy link

This PR updates the logerror function in application.js to use console.error(err) instead of err.stack || err.toString().

This change improves error visibility, especially for complex or nested errors (like those thrown by Sequelize), and supports modern features like Error.cause.

Fixes: #6462

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.

logError swallows error details (such as cause)
1 participant