From b005a983fbc9ec9e94c1d93bf5ff73e377e2c208 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Fri, 20 Dec 2024 01:50:49 -0300 Subject: [PATCH] More debug logs --- .../perfectdreams/loritta/morenitta/utils/LorittaShards.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loritta-bot-discord/src/main/kotlin/net/perfectdreams/loritta/morenitta/utils/LorittaShards.kt b/loritta-bot-discord/src/main/kotlin/net/perfectdreams/loritta/morenitta/utils/LorittaShards.kt index bbb5dab659..fc847124d6 100644 --- a/loritta-bot-discord/src/main/kotlin/net/perfectdreams/loritta/morenitta/utils/LorittaShards.kt +++ b/loritta-bot-discord/src/main/kotlin/net/perfectdreams/loritta/morenitta/utils/LorittaShards.kt @@ -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))