Skip to content

Commit

Permalink
fix: consola not printing traces (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jejebecarte authored Sep 20, 2024
1 parent d546c6b commit e6f936d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/log-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import env from '@util/env';
import bot from '..';

export default async (err: Error, message?: string) => {
logger.error(message ? message + err : err);
logger.error(err, `\n\n${message}`);

if (bot.discord.isReady()) {
((await bot.discord.channels.fetch(env.ERROR_CHANNEL_ID)) as TextChannel).send(
Expand Down
2 changes: 1 addition & 1 deletion src/util/write-to-json-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default (
return;
}

logError(err, 'Failed to write to file: ');
logError(err, 'Failed to write to file');
const embed = new EmbedBuilder()
.setColor('Red')
.setTitle('Error')
Expand Down

0 comments on commit e6f936d

Please sign in to comment.