Skip to content

Commit bd704b7

Browse files
committed
Add target ID to log messages in handleNuke function for better tracking
1 parent 074d99b commit bd704b7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Comment Mop is open source and licensed under the BSD Three Clause license. The
1616

1717
## Change History
1818

19+
### Next version:
20+
21+
* More reliable mopping of extremely large threads
22+
1923
### v9.2.0
2024

2125
* Fix an error that causes Comment Mop to fail consistently for certain users

src/nuke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async function handleNuke (nukeProps: NukeProps, context: Context): Promise<void
147147
}
148148

149149
const commentGatherEnd = Date.now();
150-
console.log(`Gathered ${actionResult.promises.length} ${pluralize("promises", actionResult.promises.length)} in ${commentGatherEnd - start}ms`);
150+
console.log(`${nukeProps.target.id}: Gathered ${actionResult.promises.length} ${pluralize("promises", actionResult.promises.length)} in ${commentGatherEnd - start}ms`);
151151
if (actionResult.promises.length === 0) {
152152
console.log(`${nukeProps.target.id}: No comments found to mop.`);
153153
context.ui.showToast("No comments found to mop.");

0 commit comments

Comments
 (0)