doc: added thread name to some logging messages
This commit is contained in:
parent
207f70683b
commit
9ec801690f
@ -20,9 +20,13 @@ public class DisconnectSegment implements Segment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processRequests(Packet packet, List<Event> carrier, AtomicBoolean abort) {
|
public void processRequests(Packet packet, List<Event> 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)) {
|
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());
|
parent.connection.removePlayer(packet.getOrigin());
|
||||||
|
|
||||||
if (packet.getOrigin().type != ParticipantType.Spectator) {
|
if (packet.getOrigin().type != ParticipantType.Spectator) {
|
||||||
|
Loading…
Reference in New Issue
Block a user