diff --git a/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java b/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java index d438f50734ba0..268302a729d4f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/console/AeshConsole.java @@ -320,10 +320,10 @@ public void write(boolean errorStream, String s) { } StringBuilder buffer = new StringBuilder(); + if (!shouldWrite(errorStream, s)) { + return; + } synchronized (this) { - if (!shouldWrite(errorStream, s)) { - return; - } if (totalStatusLines == 0) { bottomBlankSpace = 0; //just to be safe, will only happen if status is added then removed, which is not really likely writeQueue.add(s);