From 9ec801690f75ccf01dbdb8382fecdc18a8aa13df Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Fri, 4 Jun 2021 14:27:30 +0200 Subject: [PATCH] doc: added thread name to some logging messages --- .../server/lobby/pipelining/DisconnectSegment.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java index 9a507f9..f1ac2ab 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java @@ -20,9 +20,13 @@ public class DisconnectSegment implements Segment { @Override public void processRequests(Packet packet, List carrier, AtomicBoolean abort) { - Logger.trace("DisconnectSegment received {} requests.", packet.size()); + Logger.trace("{}: DisconnectSegment received {} requests.", + Thread.currentThread().getName(), + packet.size()); if (packet.containsRequestOfType(RequestType.DisconnectRequest)) { - Logger.debug("Player of Type {} sent DisconnectRequest", packet.getOrigin().type); + Logger.debug("{}: Player of Type {} sent DisconnectRequest", + Thread.currentThread().getName(), + packet.getOrigin().type); parent.connection.removePlayer(packet.getOrigin()); if (packet.getOrigin().type != ParticipantType.Spectator) {