We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf5199 commit a6bc600Copy full SHA for a6bc600
packages/cli-repl/src/cli-repl.ts
@@ -266,7 +266,11 @@ export class CliRepl implements MongoshIOProvider {
266
this.warnAboutInaccessibleFile(err, path),
267
});
268
269
- await this.logManager.cleanupOldLogFiles();
+ // Do not wait for log cleanup and log errors if MongoLogManager throws any.
270
+ void this.logManager.cleanupOldLogFiles().catch((err) => {
271
+ this.bus.emit('mongosh:error', err, 'log');
272
+ });
273
+
274
markTime(TimingCategories.Logging, 'cleaned up log files');
275
276
if (!this.logWriter) {
0 commit comments