Skip to content

Commit

Permalink
adding some more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Jun 21, 2024
1 parent 9438f3c commit c591737
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions db.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ const client = new Client({
});

client.on("end", () => console.log("Client has disconnected"));
client.on("error", (err) =>
console.error("Unexpected error on idle client", err),
);
client.on("error", (err) => console.error("Error:", err));
client.on("notice", (msg) => console.warn("Notice:", msg));
client.on("notification", (msg) => {
console.log("Notification:", msg);
console.log("Payload:", msg.payload);
})

export default client;

0 comments on commit c591737

Please sign in to comment.