-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 #3219
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3219 +/- ##
========================================
Coverage 76.13% 76.13%
========================================
Files 1645 1645
Lines 38816 38815 -1
Branches 7517 7517
========================================
Hits 29553 29553
+ Misses 5362 5361 -1
Partials 3901 3901 ☔ View full report in Codecov by Sentry. |
@@ -71,7 +71,7 @@ class TracingInitializer : Initializer<Unit> { | |||
return WriteToFilesConfiguration.Enabled( | |||
directory = bugReporter.logDirectory().absolutePath, | |||
filenamePrefix = "logs", | |||
filenameSuffix = null, | |||
filenameSuffix = "log", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a small comment so we don't change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good call.
974e8dc
to
34cf54a
Compare
34cf54a
to
8c3953d
Compare
|
Content
Use the
log
suffix when creating log files so the rageshake server recognises its format and doesn't rename them to justlogs-0001.log.gz
,logs-0002.log.gz
, etc.Motivation and context
This way we'll have instead
logs-2024-07-19-11.log.gz
,logs-2024-07-19-10.log.gz
, etc., stating the hour of logs included inside in their filename.Tests
You can upload a test bug report after letting the app run for a while and collect new logs, then check the rageshakes.
https://github.com/element-hq/element-x-android-rageshakes/issues/2410
Checklist