From 136d52a2688a947de2b48d4da4917a6fdf163977 Mon Sep 17 00:00:00 2001 From: Slincnik Date: Sat, 14 Dec 2024 14:45:47 +0300 Subject: [PATCH] style: changed console to logger --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);