Skip to content

Commit

Permalink
Correct log level
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySwimmer committed Aug 21, 2023
1 parent 40fde22 commit 132d21a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 148,7 @@ private void clientLateHandshakeHandler(Connection connection, ConnectionEventAr
}

// Error
GetLogger().Info("Authentication failure! Server rejected join request!");
GetLogger().Warn("Authentication failure! Server rejected join request!");
ThrowAuthenticationFailure(disconnectParams);
}
else
Expand Down Expand Up @@ -183,17 183,17 @@ private void clientLateHandshakeHandler(Connection connection, ConnectionEventAr
}

// Error
GetLogger().Info("Authentication failure! Server rejected join request!");
GetLogger().Warn("Authentication failure! Server rejected join request!");
ThrowAuthenticationFailure(disconnectParams);
}
else
{
GetLogger().Info("Authentication success! Joined as " auth.DisplayName "!");
GetLogger().Warn("Authentication success! Joined as " auth.DisplayName "!");
}
}
catch
{
GetLogger().Info("Authentication failure! Server rejected join request!");
GetLogger().Warn("Authentication failure! Server rejected join request!");
ThrowAuthenticationFailure(null);
}
}
Expand Down

0 comments on commit 132d21a

Please sign in to comment.