Skip to content

Commit 26159d2

Browse files
committed
Bug 1909099 - Always clean up old session restore and sync log files. r=markh,sessionstore-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D217520
1 parent 0122805 commit 26159d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

toolkit/modules/LogManager.sys.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,7 @@ export class LogManager {
384384
filename,
385385
this._log
386386
);
387-
// It's not completely clear to markh why we only do log cleanups
388-
// for errors, but for now the Sync semantics have been copied...
389-
// (one theory is that only cleaning up on error makes it less
390-
// likely old error logs would be removed, but that's not true if
391-
// there are occasional errors - let's address this later!)
392-
if (reason == this.ERROR_LOG_WRITTEN && !this._cleaningUpFileLogs) {
387+
if (!this._cleaningUpFileLogs) {
393388
this._log.trace("Running cleanup.");
394389
try {
395390
await this.cleanupLogs();

0 commit comments

Comments
 (0)