mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Use the right filename for log files so they're sorted in rageshakes (#3219)
* Use the right filename for log files so they're sorted in rageshakes * Hide the suffix part so it's not changed by accident
This commit is contained in:
committed by
GitHub
parent
95c3738a98
commit
63df35e071
@@ -71,8 +71,7 @@ class TracingInitializer : Initializer<Unit> {
|
|||||||
return WriteToFilesConfiguration.Enabled(
|
return WriteToFilesConfiguration.Enabled(
|
||||||
directory = bugReporter.logDirectory().absolutePath,
|
directory = bugReporter.logDirectory().absolutePath,
|
||||||
filenamePrefix = "logs",
|
filenamePrefix = "logs",
|
||||||
filenameSuffix = null,
|
// Keep a maximum of 1 week of log files.
|
||||||
// Keep a minimum of 1 week of log files.
|
|
||||||
numberOfFiles = 7 * 24,
|
numberOfFiles = 7 * 24,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-2
@@ -21,7 +21,9 @@ sealed interface WriteToFilesConfiguration {
|
|||||||
data class Enabled(
|
data class Enabled(
|
||||||
val directory: String,
|
val directory: String,
|
||||||
val filenamePrefix: String,
|
val filenamePrefix: String,
|
||||||
val filenameSuffix: String?,
|
|
||||||
val numberOfFiles: Int?,
|
val numberOfFiles: Int?,
|
||||||
) : WriteToFilesConfiguration
|
) : WriteToFilesConfiguration {
|
||||||
|
// DO NOT CHANGE: suffix *MUST* be "log" for the rageshake server to not rename the file to something generic
|
||||||
|
val filenameSuffix = "log"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user