Skip to content

Commit

Permalink
Remove "Skipping because it is unauthorized" log because it ends up s…
Browse files Browse the repository at this point in the history
…pamming the console waaaay too much, add other logs
  • Loading branch information
MrPowerGamerBR committed Oct 3, 2023
1 parent d1713db commit 46b0b34
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class TwitchSubscriptionsHandler(val m: LorittaBot) {

private suspend fun createSubscriptions() {
logger.info { "Creating Twitch subscriptions..." }

// Get all tracked account data
val trackedAccounts = m.pudding.transaction {
TrackedTwitchAccounts.slice(TrackedTwitchAccounts.twitchUserId).selectAll()
Expand Down Expand Up @@ -149,8 +150,11 @@ class TwitchSubscriptionsHandler(val m: LorittaBot) {
}
}
} else {
logger.info { "Skipping $twitchUserId because they are unauthorized..." }
// We don't log this because it ends up spamming the console way too much
// logger.info { "Skipping $twitchUserId because they are unauthorized..." }
}
}

logger.info { "Finished processing Twitch subscriptions!" }
}
}

0 comments on commit 46b0b34

Please sign in to comment.