querysub 0.380.0 → 0.381.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -328,22 +328,24 @@ export async function exposeErrorWatchService() {
|
|
|
328
328
|
unmatchedErrors.push(error);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
331
|
+
if (!matchedSuppressionId) {
|
|
332
|
+
const pattern = await generatePatternForError(error);
|
|
333
|
+
if (pattern) {
|
|
334
|
+
const newEntry: SuppressionEntry = {
|
|
335
|
+
id: nextId(),
|
|
336
|
+
pattern,
|
|
337
|
+
timeout: 0,
|
|
338
|
+
createdTime: Date.now(),
|
|
339
|
+
lastUpdatedTime: Date.now(),
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
suppressionCache.push(newEntry);
|
|
343
|
+
void suppression.set(newEntry.id, newEntry);
|
|
344
|
+
applySuppression(error, newEntry);
|
|
345
|
+
queueDiscordNotification(newEntry.id, 1, true);
|
|
346
|
+
|
|
347
|
+
void ErrorNotificationService.triggerSuppressionUpdate(newEntry.id);
|
|
348
|
+
}
|
|
347
349
|
}
|
|
348
350
|
|
|
349
351
|
void ErrorNotificationService.triggerUnmatchedError(error);
|