mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-20 01:13:47 +05:00
refactor: change logger func when called error, warn
This commit is contained in:
parent
7e7cbcae0b
commit
cc10969ccf
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue