Kleine Dinge am Logging geändert.

This commit is contained in:
eichehome 2021-05-16 12:25:46 +02:00
parent e81e1fa165
commit 8c44d023d3

View file

@ -44,7 +44,7 @@ public class ClientReciveMessageThread extends Thread {
try {
Message empfangen = null;
while ((empfangen = (Message) this.in.readObject()) != null) {
Logger.getLogger(ClientReciveMessageThread.class.getName()).log(Level.INFO, String.format("Reciveing Thread %d: Time: %s Client: %s Message: %s", this.getId(), empfangen.getTime(), empfangen.getUsername(), empfangen.getUsername()));
Logger.getLogger(ClientReciveMessageThread.class.getName()).log(Level.INFO, String.format("Reciveing Thread %d: Time: %s Client: %s Message: %s", this.getId(), empfangen.getTime(), empfangen.getUsername(), empfangen.getMessage()));
for (ObjectOutputStream stream : clientStore.getAllOutputStreams()) {
stream.writeObject(empfangen);
stream.flush();