[perf-tests] do not print found during compilation warnings

GitOrigin-RevId: 4eaaa7561cdc5a197ef88dad86ec9ea421984471
This commit is contained in:
Anna Koehler
2024-07-11 23:34:16 +02:00
committed by intellij-monorepo-bot
parent c06cf6db53
commit 16f513996c

View File

@@ -65,6 +65,7 @@ public class BuildCommand extends AbstractCommand {
@Override
public void compilationFinished(boolean aborted, int errors, int warnings, @NotNull CompileContext compileContext) {
if (errors > 0) {
context.message("Compilation FAILED.", getLine());
CompilerMessage[] errorMessages = compileContext.getMessages(CompilerMessageCategory.ERROR);
StringBuilder errorMessage = new StringBuilder("Errors happened during build: " + errors);
for (CompilerMessage error : errorMessages) {
@@ -74,12 +75,6 @@ public class BuildCommand extends AbstractCommand {
spanRef.get().setAttribute("Errors", errors);
}
if (warnings > 0) {
CompilerMessage[] warningMessages = compileContext.getMessages(CompilerMessageCategory.WARNING);
StringBuilder warningMessage = new StringBuilder("Warnings happened during build: " + warnings);
for (CompilerMessage warning : warningMessages) {
warningMessage.append("\n").append(warning);
}
context.message(warningMessage.toString(), getLine());
spanRef.get().setAttribute("Warnings", warnings);
}
connection.disconnect();