Skip to content

Commit

Permalink
Improved log message
Browse files Browse the repository at this point in the history
  • Loading branch information
seime committed Jul 22, 2024
1 parent 99838c4 commit 96d278a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ public void onConnect() throws ProtocolAPIError {
@Override
public void onPacket(@NonNull GeneratedMessageV3 message) throws ProtocolAPIError {
switch (connectionState) {
case UNINITIALIZED -> logger.warn("[{}] Received packet while uninitialized.", logPrefix);
case UNINITIALIZED -> logger.warn("[{}] Received packet {} while uninitialized.", logPrefix,
message.getClass().getSimpleName());
case HELLO_SENT -> handleHelloResponse(message);
case LOGIN_SENT -> handleLoginResponse(message);
case CONNECTED -> handleConnected(message);
Expand Down

0 comments on commit 96d278a

Please sign in to comment.