commit | 6c8acb84b45960f55cf1aa1ce82549b5d859837f | [log] [tgz] |
---|---|---|
author | Wez <[email protected]> | Thu Jul 18 00:32:59 2019 |
committer | Commit Bot <[email protected]> | Thu Jul 18 00:32:59 2019 |
tree | b54de37e1a32fe5c65dfe4d6ca9eacf02f4cb22a | |
parent | f4d74ffafcf49c7a20334694475387aa2600f405 [diff] |
Reland "[Logging] Disable always-log-ERRORs-to-stderr unless LOG_TO_FILE is set." This is a reland of ffa05b99247df703a03b472f6d7b1fa0f3f23582 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/+/1704917 Reviewed-by: danakj <[email protected]> Commit-Queue: Wez <[email protected]> Auto-Submit: Wez <[email protected]> Cr-Commit-Position: refs/heads/master@{#678513}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .