Skip to content

Commit 94a229a

Browse files
committed
fix: log when skipping healing
1 parent bf588ec commit 94a229a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run/types/DeviceWrapper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ export class DeviceWrapper {
329329
{ strategy: 'id' as Strategy, pattern: /resource-id="([^"]+)"/g },
330330
];
331331

332+
333+
// If this list gets out of hand, consider lowering the threshold
332334
const blacklist = [
333335
{ from: 'Voice message', to: 'New voice message' },
334336
{ from: 'Message sent status: Sent', to: 'Message sent status: Sending' },
@@ -386,6 +388,7 @@ export class DeviceWrapper {
386388

387389
// Don't heal blacklisted pairs
388390
if (isBlacklisted) {
391+
this.log(`Skipping healing: prevented "${selector}" from healing to "${match.originalSelector}"`);
389392
continue;
390393
}
391394

0 commit comments

Comments
 (0)