refactor: change logger func when called error, warn

This commit is contained in:
Slincnik 2025-01-14 23:49:31 +03:00
parent 7e7cbcae0b
commit cc10969ccf
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ client.init();
client client
.on("disconnect", () => logger.warn("Bot disconnected.")) .on("disconnect", () => logger.warn("Bot disconnected."))
.on("reconnecting", () => logger.warn("Bot reconnecting...")) .on("reconnecting", () => logger.warn("Bot reconnecting..."))
.on("warn", logger.log) .on("warn", logger.warn)
.on("error", logger.log); .on("error", logger.error);
process.on("unhandledRejection", logger.log).on("uncaughtException", logger.log); process.on("unhandledRejection", logger.error).on("uncaughtException", logger.error);