Fix rageshakes not uploading if they are too long (#6075)

* Fix rageshakes not uploading if they are too long. The max log line size in the default rageshake server is `1_000_000`.

* Change upload order to ensure the current logs and the push rules are always sent.

* Add 'buffer' for unexpected log lines.
This commit is contained in:
Jorge Martin Espinosa 2026-01-27 07:44:12 +01:00 committed by GitHub
parent 62768359cb
commit 80ba0e9b0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 23 deletions

View file

@ -30,4 +30,9 @@ object RageshakeConfig {
* The maximum size of a single log file.
*/
const val MAX_LOG_CONTENT_SIZE = 100 * 1024 * 1024L
/**
* The maximum number of log lines a rageshake can contain.
*/
const val MAX_LOG_LINES_SIZE = 1_000_000
}