Skip to content

Commit

Permalink
do some logging to figure out why god
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed Apr 24, 2024
1 parent b16f568 commit 61bc357
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ const client = new Client({
allowedMentions: { parse: [], repliedUser: false }
});

backendsocket.on("connect_error", (err) => {
// the reason of the error, for example "xhr poll error"
console.log(err.message);
// some additional description, for example the status code of the initial HTTP response
console.log(err.description);
});

if (!fs.existsSync('./temp')) fs.mkdirSync('./temp');

// Map to store the last message timestamp per person
Expand Down

1 comment on commit 61bc357

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error

Please sign in to comment.