Fix: do not spam the same status contents on stdout

This commit is contained in:
Laurent Clouet
2024-09-08 01:51:15 +02:00
parent ca238210ea
commit aae6359c1a

View File

@@ -117,10 +117,10 @@ public class GuiText implements Gui {
}
}
else {
String statusNew = String.format("%s %s", this.df.format(new Date()), msg_);
String statusNew = msg_;
if (statusOld.equals(statusNew) == false) {
statusOld = statusNew;
System.out.println(statusNew);
System.out.println(String.format("%s %s", this.df.format(new Date()), msg_));
}
}
}