Skip to content

Commit

Permalink
feat(event): log SLP with debug level
Browse files Browse the repository at this point in the history
close #9
  • Loading branch information
WakelessSloth56 committed Oct 4, 2022
1 parent 7749698 commit 6dd0117
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -20,13 +20,13 @@ public static void registerCommands(final RegisterCommandsEvent event) {
}


private static final Marker SERVER_LIST_PING_MARKER = LogUtil.getMarker("ServerListPing").addParents(MARKER);
private static final Marker SLP_MARKER = LogUtil.getMarker("ServerListPing").addParents(MARKER);

@SubscribeEvent
public static void onServerLogin(final ServerLoginEvent event) {
if (event.getPacket().getIntention() == ConnectionProtocol.STATUS) {
LOGGER.info(
SERVER_LIST_PING_MARKER,
LOGGER.debug(
SLP_MARKER,
String.format("[%s] <-> InitialHandler has pinged", event.getNetworkManager().getRemoteAddress())
);
}
Expand Down

0 comments on commit 6dd0117

Please sign in to comment.