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

Change how logging level is passed to native process #11438

Merged
merged 5 commits into from
Sep 18, 2023
Merged

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Sep 15, 2023

There is a corresponding PR on the native side to enable a 'safe' mode for JSON deserialization, in which failed parsing of node does not fail the entire deserialization. This should address the crashes currently related to: #11375

That change also adds logging of the node that failed to deserialize. However, the logging level was not being evaluated until after the cpptools initialization message (containing it) has been deserialized, so any failures in that initial message (including all settings), were not being logged at the right level. So, this change is part of setting that logging level earlier on the native side by passing the logging level up in the initial LSP initialization message, before the CppTools initialization/settings message.

Also changed an existing cache of the loggingLevel value to use its numeric form.

@Colengms Colengms changed the title Add log level to debug log message Change how logging level is passed to native process Sep 15, 2023
michelleangela
michelleangela previously approved these changes Sep 18, 2023
@Colengms Colengms merged commit 4d1a2a0 into main Sep 18, 2023
4 checks passed
@Colengms Colengms deleted the coleng/safe_json branch September 18, 2023 20:57
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants