Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we get an error writing to the log, log it only once to stderr. This avoids generating, say, 72 GB of ENOSPC errors in teuthology.log when /var/log fills up. Fixes: #14616 Signed-off-by: Sage Weil <sage@redhat.com> (cherry picked from commit d9ac047) Conflicts: src/log/Log.cc (drop m_uid and m_gid which are not used in hammer; order of do_stderr, do_syslog, do_fd conditional blocks is reversed in hammer; drop irrelevant speed optimization code from 5bfe05a)
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters