Skip to content
Extraits de code Groupes Projets
Valider 3d6f0efd rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Crank up the logging for DiscordStore Get

parent 9339f70a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -239,9 +239,10 @@ export class DiscordBot { ...@@ -239,9 +239,10 @@ export class DiscordBot {
log.verbose("DiscordBot", `Event:`, event); log.verbose("DiscordBot", `Event:`, event);
const storeEvent = await this.store.Get(DbEvent, {matrix_id: event.redacts + ";" + event.room_id}); const storeEvent = await this.store.Get(DbEvent, {matrix_id: event.redacts + ";" + event.room_id});
if (!storeEvent.Result) { if (!storeEvent.Result) {
log.warn("DiscordBot", `Could not redact because the event was in the store.`); log.warn("DiscordBot", `Could not redact because the event was not in the store.`);
return; return;
} }
log.info("DiscordBot", `Redact event matched ${storeEvent.ResultCount} entries`);
while (storeEvent.Next()) { while (storeEvent.Next()) {
log.info("DiscordBot", `Deleting discord msg ${storeEvent.DiscordId}`); log.info("DiscordBot", `Deleting discord msg ${storeEvent.DiscordId}`);
if (!this.bot.guilds.has(storeEvent.GuildId)) { if (!this.bot.guilds.has(storeEvent.GuildId)) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter