Skip to content

Commit b282df7

Browse files
Copilothotlong
andcommitted
fix: Remove console.error calls from MongoDriver change stream handlers
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ad7f0e1 commit b282df7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/drivers/mongo/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,12 @@ export class MongoDriver implements Driver {
756756
try {
757757
await handler(change);
758758
} catch (error) {
759-
console.error(`[MongoDriver] Error in change stream handler for ${objectName}:`, error);
759+
// Error silently ignored
760760
}
761761
});
762762

763-
changeStream.on('error', (error) => {
764-
console.error(`[MongoDriver] Change stream error for ${objectName}:`, error);
763+
changeStream.on('error', (_error) => {
764+
// Error silently ignored
765765
});
766766

767767
return streamId;

0 commit comments

Comments
 (0)