Skip to content

Commit

Permalink
More debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Dec 20, 2024
1 parent 2078a30 commit b005a98
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ class LorittaShards(val loritta: LorittaBot, val shardManager: ShardManager) {
if (cachedUser != null)
return cachedUser.getOrNull()

try {
throw RuntimeException()
} catch (e: Exception) {
logger.info(e) { "LorittaShards#retrieveUserById - UserId: $id" }
}

val user = shardManager.retrieveUserById(id).await()
cachedRetrievedUsers.put(id, Optional.of(user))

Expand Down

0 comments on commit b005a98

Please sign in to comment.