diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-11-13 08:44:51 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-11-13 11:17:07 +0100 |
| commit | 09e57228300fb242e6b646bba121c01f4e71530f (patch) | |
| tree | 9022a95dce342251c12abe09b0a5c1db038a6167 | |
| parent | c2289ffb178e5d8081aad4a0310558bca37959c0 (diff) | |
| download | mullvadvpn-09e57228300fb242e6b646bba121c01f4e71530f.tar.xz mullvadvpn-09e57228300fb242e6b646bba121c01f4e71530f.zip | |
Reduce the size limit of the problem report to around 2mb
| -rw-r--r-- | mullvad-daemon/src/bin/problem-report.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-daemon/src/bin/problem-report.rs b/mullvad-daemon/src/bin/problem-report.rs index 582d9cd659..45033b7e6a 100644 --- a/mullvad-daemon/src/bin/problem-report.rs +++ b/mullvad-daemon/src/bin/problem-report.rs @@ -24,9 +24,9 @@ use std::path::{Path, PathBuf}; use std::process::Command; /// Maximum number of bytes to read from each log file -const LOG_MAX_READ_BYTES: usize = 5 * 1024 * 1024; -/// Maximum number of bytes allowed in a report. -const REPORT_MAX_SIZE: usize = 4 * LOG_MAX_READ_BYTES; +const LOG_MAX_READ_BYTES: usize = 1 * 1024 * 1024; +/// Fit two logs plus some system information in the report. +const REPORT_MAX_SIZE: usize = 2 * LOG_MAX_READ_BYTES + 16 * 1024; /// Field delimeter in generated problem report |
