chore: better mongo logs (#1965)

* chore: better mongo logs

* chore: add comments
This commit is contained in:
Kevin Wan
2022-06-04 16:11:31 +08:00
committed by GitHub
parent edfaa6d906
commit 6c94e4652e
3 changed files with 48 additions and 11 deletions

View File

@@ -328,5 +328,9 @@ func gzipFile(file string) error {
return err
}
return os.Remove(file)
// ignore errors on remove, it most happens on unit tests,
// it caused lots of troubles on GitHub actions.
// and even on production, remove errors are not important.
_ = os.Remove(file)
return nil
}