-
Notifications
You must be signed in to change notification settings - Fork 109
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
Аппендер вывода логов в LanguageClient, если он подключен #3118
Conversation
/rebase |
9ddd0a2
to
e9aef17
Compare
Qodana Community for JVM14 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
…lient-aware-appender
@Override | ||
protected void writeOut(ILoggingEvent event) throws IOException { | ||
if (clientHolder != null && clientHolder.isConnected()) { | ||
var languageClient = clientHolder.getClient().orElseThrow(); |
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.
фуфу. Говоришь что проверяешь наличие, а сам небезопасно Optional вскрываешь
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.
isConnected внутри проверяет наличие опшионала :)
Чтобы исключить запуск сервера каждый раз при поднятии спринг-контекста.
Kudos, SonarCloud Quality Gate passed! |
Описание
Связанные задачи
Closes #3069
Чеклист
Общие
gradlew precommit
)Для диагностик
Дополнительно