Skip to content

Commit cd6c11f

Browse files
Copilothotlong
andcommitted
fix: remove console calls from MemoryDriver persistence error handling
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent b282df7 commit cd6c11f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/drivers/memory/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ export class MemoryDriver implements Driver {
676676
}
677677
}
678678
} catch (error) {
679-
console.warn('[MemoryDriver] Failed to load persisted data:', error);
679+
// Error silently ignored
680680
}
681681

682682
// Set up auto-save timer
@@ -704,7 +704,7 @@ export class MemoryDriver implements Driver {
704704

705705
fs.writeFileSync(this.config.persistence.filePath, JSON.stringify(data, null, 2), 'utf8');
706706
} catch (error) {
707-
console.error('[MemoryDriver] Failed to save data to disk:', error);
707+
// Error silently ignored
708708
}
709709
}
710710

0 commit comments

Comments
 (0)