Skip to content

Commit

Permalink
refactor: Improve debug log wording for getUserCheckedOut
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Dec 21, 2023
1 parent ca00019 commit 48e087a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ public Optional<String> getUserCheckedOut(@NotNull User user) {
final byte[] key = getKey(RedisKeyType.DATA_CHECKOUT, user.getUuid(), clusterId);
final byte[] readData = jedis.get(key);
if (readData != null) {
plugin.debug(String.format("[%s] Read %s key from Redis server", user.getUsername(),
RedisKeyType.DATA_CHECKOUT));
plugin.debug(String.format("[%s] Waiting for %s key to be unset on Redis server",
user.getUsername(), RedisKeyType.DATA_CHECKOUT));
return Optional.of(new String(readData, StandardCharsets.UTF_8));
}
} catch (Throwable e) {
plugin.log(Level.SEVERE, "An exception occurred getting a user's checkout key from Redis", e);
}
plugin.debug(String.format("[%s] Waiting for %s key from Redis server", user.getUsername(),
plugin.debug(String.format("[%s] %s key no longer set on Redis server", user.getUsername(),
RedisKeyType.DATA_CHECKOUT));
return Optional.empty();
}
Expand Down

0 comments on commit 48e087a

Please sign in to comment.