Skip to content

Commit

Permalink
refactor(radio): show error detail during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
vittee committed Dec 10, 2024
1 parent f50428e commit 3f7c3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/radio/src/discord/bot_main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ async function main() {

const musicDb = new MongoMusicDb();

await retryable(async ({ attempts }) => {
await retryable(async ({ attempts, previousError }) => {
if (attempts) {
logger.info('Attempting to re-initialize database connections (%d)', attempts);
logger.info('Attempting to re-initialize database connections (%d), previous error was: %s', attempts, (previousError as any).stack);
}

return musicDb.init({
Expand Down

0 comments on commit 3f7c3af

Please sign in to comment.