Update the default logs directory and allow collection from elsewhere. (#4352)
* Replace deprecated URL methods. * Start putting log files in Library/Logs (moving existing files with a migration.) * Make Tracing.deleteLogFiles aware of the legacy logs location. * Allow the logs to be collected from a different directory.
This commit is contained in:
@@ -401,9 +401,14 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
}
|
||||
|
||||
if oldVersion < Version(1, 6, 7) {
|
||||
Tracing.deleteLogFiles()
|
||||
Tracing.deleteLogFiles(in: Tracing.legacyLogsDirectory)
|
||||
MXLog.info("Migrating to v1.6.7, log files have been wiped")
|
||||
}
|
||||
|
||||
if oldVersion < Version(25, 7, 4) {
|
||||
Tracing.migrateLogFiles()
|
||||
MXLog.info("Migrating to version 25.07.4, log files have been moved.")
|
||||
}
|
||||
}
|
||||
|
||||
// This could be removed once the adoption of 25.06.x is widespread.
|
||||
|
||||
Reference in New Issue
Block a user