Skip to content

Commit

Permalink
Improve messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Nov 14, 2024
1 parent 0ba8d92 commit 69507b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public void onSpiceInitialized(SpiceInitializedEvent event)
vmStub.updateStatus(from -> {
JsonObject status = from.status();
status.addProperty("consoleClient", event.clientHost());
updateCondition(from, status, "ConsoleConnected",
true, "Connection from " + event.clientHost(), null);
updateCondition(from, status, "ConsoleConnected", true, "Connected",
"Connection from " + event.clientHost());
return status;
});

Expand Down Expand Up @@ -143,8 +143,8 @@ public void onSpiceDisconnected(SpiceDisconnectedEvent event)
vmStub.updateStatus(from -> {
JsonObject status = from.status();
status.addProperty("consoleClient", "");
updateCondition(from, status, "ConsoleConnected",
false, event.clientHost() + " has disconnected", null);
updateCondition(from, status, "ConsoleConnected", false,
"Disconnected", event.clientHost() + " has disconnected");
return status;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void onRunnerStateChanged(RunnerStateChange event)
if (!running) {
status.addProperty("consoleClient", "");
updateCondition(from, status, "ConsoleConnected", false,
"VM has stopped", null);
"VmStopped", "The VM has been shut down");
}
return status;
});
Expand Down

0 comments on commit 69507b5

Please sign in to comment.