diff --git a/src/index.js b/src/index.js index 48d43465..79600f71 100644 --- a/src/index.js +++ b/src/index.js @@ -28,7 +28,7 @@ client.init(); client .on("disconnect", () => logger.warn("Bot disconnected.")) .on("reconnecting", () => logger.warn("Bot reconnecting...")) - .on("warn", console.log) - .on("error", console.log); + .on("warn", logger.log) + .on("error", logger.log); -process.on("unhandledRejection", console.log).on("uncaughtException", console.log); +process.on("unhandledRejection", logger.log).on("uncaughtException", logger.log);