Skip to content

Commit

Permalink
Add some debug logs for the timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaUrsa committed Nov 5, 2023
1 parent e1d5d0b commit 249af26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discord/events/guildMemberUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,12 @@ export const guildMemberUpdate: GuildMemberUpdateEvent = {
// Find the difference between the two arrays
const rolesAdded = newRoles.filter(x => !oldRoles.includes(x));
if (rolesAdded.length > 0) {
log.debug(F, `${rolesAdded.length} roles added`);
// log.debug(F, `${rolesAdded.length} roles added`);
await roleAddProcess(newMember, oldMember, rolesAdded);
}
const rolesRemoved = oldRoles.filter(x => !newRoles.includes(x));
if (rolesRemoved.length > 0) {
log.debug(F, `${rolesRemoved.length} roles removed`);
// log.debug(F, `${rolesRemoved.length} roles removed`);
await roleRemProcess(newMember, rolesRemoved);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/global/commands/g.learn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ async function getMoodleUser(
});
}).on('error', error => {
log.error(F, `Error: ${error.message}`);
log.error(F, `URL: ${url}`);
reject(error);
});
});
Expand Down

0 comments on commit 249af26

Please sign in to comment.