Added Server#toString

This commit is contained in:
2024-02-13 20:19:03 +01:00
parent 346a6b1a9a
commit e30f828a73

View File

@@ -95,7 +95,7 @@ public class Server {
try { try {
process.waitFor(); process.waitFor();
} catch (InterruptedException e) { } catch (InterruptedException e) {
LOG.error("An error occurred while waiting for the server to stop", e); LOG.error("An error occurred while waiting for the server to stop", e.getMessage());
} }
setStatus(ServerStatus.OFFLINE); setStatus(ServerStatus.OFFLINE);
setProcess(null); setProcess(null);
@@ -105,4 +105,12 @@ public class Server {
keepAliveThread.start(); keepAliveThread.start();
} }
@Override
public String toString() {
return "Server{" +
"name='" + name + '\'' +
", status=" + status +
", configuration=" + configuration +
'}';
}
} }