Reland "[Logging] Disable always-log-ERRORs-to-stderr unless LOG_TO_FILE is set."
This is a reland of ffa05b99 logging::LogMessage has a special-case to write LOG_ERROR messages to stderr, even if LOG_TO_STDERR is not enabled, to make ERROR and FATAL messages more visible, especially in tests. Restrict this behaviour to apply only when no log destinations are set, other than LOG_TO_FILE, so that binaries which only LOG_TO_SYSTEM_DEBUG_LOG will never emit logspam to stderr. Tested by adding a unit test for this case. Bug: 968387 Change-Id: Ibe3369eb2a47accdd17cd3cbb19c921de827ca70 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1704917Reviewed-by:danakj <danakj@chromium.org> Commit-Queue: Wez <wez@chromium.org> Auto-Submit: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#678513}
Showing
Please register or sign in to comment