-
Notifications
You must be signed in to change notification settings - Fork 323
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
Don't log installed engines and runtimes in prod #5900
Conversation
010980f
to
4a121cf
Compare
@@ -339,7 +339,7 @@ class RuntimeVersionManager( | |||
result match { | |||
case (path, Failure(exception)) => | |||
logger.warn( | |||
"{} at [{}] has been skipped due to the following error: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not print this error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will actually skip it because of the way the last argument is treated if it is an exception. So it would always be empty from what I saw. This way it should included the stacktrace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The action will check and install all necessary components of GraalVM for every mentioned version. While not harmful, it adds up to startup time. Additionally added an option in language server startup to skip installation of GraalVM components. The latter is already performed by project-manager when opening the project and it is unnecessary to do it twice. Due to LS' architecture this configuration has to be passed around via multiple configs. Finally, skipped the attempt to install Python component on Windows - this is not supported by GraalVM atm. Closes #5749.
c2739ce
to
accd63a
Compare
Pull Request Description
The
logAvailableComponentsForDebugging
will check and install all necessary components of GraalVM for every mentioned version. While not harmful, it adds up to startup time.Additionally added an option in language server startup to skip installation of GraalVM components. The latter is already performed by project-manager when opening the project and it is unnecessary to do it twice. Due to LS' architecture this configuration has to be passed around via multiple configs.
Finally, skipped the attempt to install Python component on Windows - this is not supported by GraalVM atm.
Closes #5749.
Important Notes
The impact of this problem could be really felt the more versions of Enso and GraalVM one had since it would go through all of them.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.