diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-16 13:37:20 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-18 07:26:47 -0300 |
| commit | cfe64fff087cc94357e0acacbac5cf8b91917868 (patch) | |
| tree | 8486f164420236e807468f7f26f09d9454a6eb6a | |
| parent | afe169274c2ba1858755ef14856c5c0ef9105042 (diff) | |
| download | mullvadvpn-cfe64fff087cc94357e0acacbac5cf8b91917868.tar.xz mullvadvpn-cfe64fff087cc94357e0acacbac5cf8b91917868.zip | |
Reword `add_log` function comment
| -rw-r--r-- | mullvad-daemon/src/bin/problem-report.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-daemon/src/bin/problem-report.rs b/mullvad-daemon/src/bin/problem-report.rs index 1cc8ccecf9..f6c6ee4bfc 100644 --- a/mullvad-daemon/src/bin/problem-report.rs +++ b/mullvad-daemon/src/bin/problem-report.rs @@ -211,8 +211,8 @@ impl ProblemReport { } } - /// Attach file log to this report. This method uses the error chain instead of log - /// contents if error occurred when reading log file. + /// Attach a file log to this report. This method adds the error chain instead of the log + /// contents if an error occurs while reading the log file. pub fn add_log(&mut self, path: &Path) { let content = self.redact(&read_file_lossy(path, LOG_MAX_READ_BYTES) .chain_err(|| ErrorKind::ReadLogError(path.to_path_buf())) |
