[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.15.0esr-13.5-1] Bug 1909099 - Always clean up old session restore and sync log files....



Title: GitLab

ma1 pushed to branch mullvad-browser-115.15.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 0dab02ba
    by Sam Foster at 2024-08-31T13:05:25+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:

Changes:

  • services/common/logmanager.sys.mjs
    ... ... @@ -363,12 +363,7 @@ LogManager.prototype = {
    363 363
             filename,
    
    364 364
             this._log
    
    365 365
           );
    
    366
    -      // It's not completely clear to markh why we only do log cleanups
    
    367
    -      // for errors, but for now the Sync semantics have been copied...
    
    368
    -      // (one theory is that only cleaning up on error makes it less
    
    369
    -      // likely old error logs would be removed, but that's not true if
    
    370
    -      // there are occasional errors - let's address this later!)
    
    371
    -      if (reason == this.ERROR_LOG_WRITTEN && !this._cleaningUpFileLogs) {
    
    366
    +      if (!this._cleaningUpFileLogs) {
    
    372 367
             this._log.trace("Running cleanup.");
    
    373 368
             try {
    
    374 369
               await this.cleanupLogs();
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits