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

GLSP-1195: Handle parsing errors in winston logger #82

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

tortmayr
Copy link
Contributor

Fixes eclipse-glsp/glsp#1195

What it does

  • Ensure that the WinstonLogger does not throw an error if it encounters an unparseable object (e.g. circular structure)
  • Add fallback hooks for uncaught exceptions/promise rejections to example server to avoid nodes default behavior (process exit)

How to test

Follow-ups

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

- Ensure that the WinstonLogger does not throw an error if it encounters an unparseable object
 (e.g. circular structure)
- Add fallback hooks for uncaught exceptions/promise rejections to example server to avoid nodes default behavior (process exit)

Fixes eclipse-glsp/glsp#1195
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

LGTM!

@tortmayr tortmayr merged commit 581ad6d into main May 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash of the glsp server process when registering an OperantionHandler
2 participants