[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-128.2.0esr-14.0-1] Bug 1909099 - Always clean up old session restore and sync log files....

ma1 (@ma1) git at gitlab.torproject.org
Sat Aug 31 05:04:47 UTC 2024



ma1 pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser


Commits:
dfd03239 by Sam Foster at 2024-08-31T13:04:35+08:00
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 changed file:

- toolkit/modules/LogManager.sys.mjs


Changes:

=====================================
toolkit/modules/LogManager.sys.mjs
=====================================
@@ -384,12 +384,7 @@ export class LogManager {
         filename,
         this._log
       );
-      // It's not completely clear to markh why we only do log cleanups
-      // for errors, but for now the Sync semantics have been copied...
-      // (one theory is that only cleaning up on error makes it less
-      // likely old error logs would be removed, but that's not true if
-      // there are occasional errors - let's address this later!)
-      if (reason == this.ERROR_LOG_WRITTEN && !this._cleaningUpFileLogs) {
+      if (!this._cleaningUpFileLogs) {
         this._log.trace("Running cleanup.");
         try {
           await this.cleanupLogs();



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/dfd0323971f2be3d034d3dc8436886d08c6b64ed

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/dfd0323971f2be3d034d3dc8436886d08c6b64ed
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240831/eb6e0647/attachment-0001.htm>


More information about the tbb-commits mailing list