|
|
DescriptionDon't evaluate args to LOG(INFO) and LOG(WARNING) in release builds.
We were using the LAZY_STREAM macro to do this based on --log-level (which
defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE.
Committed: https://crrev.com/c78c0ad7cca1b37761b488e9499d619b21c8016d
Cr-Commit-Position: refs/heads/master@{#363565}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : clarify comment #
Messages
Total messages: 29 (15 generated)
Description was changed from ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. ========== to ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. TESTED="LOG(INFO) << foo()" doesn't call foo ==========
Description was changed from ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. TESTED="LOG(INFO) << foo()" doesn't call foo ========== to ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. ==========
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
Patchset #1 (id:40001) has been deleted
Patchset #1 (id:60001) has been deleted
Patchset #1 (id:80001) has been deleted
skobes@chromium.org changed reviewers: + brettw@chromium.org
Alternatively we could make InitChromeLogging call SetMinLogLevel(2). But this seems better.
https://codereview.chromium.org/1499693002/diff/100001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/1499693002/diff/100001/base/logging.cc#newcod... base/logging.cc:399: severity >= kAlwaysPrintErrorLevel; Do ew need the kAlwaysPrintErrorLevel check here? If there is no destinatoin and no message handler, can even LOG_FATAL go anywhere? If this is needed, we should mention in the comment why.
https://codereview.chromium.org/1499693002/diff/100001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/1499693002/diff/100001/base/logging.cc#newcod... base/logging.cc:399: severity >= kAlwaysPrintErrorLevel; On 2015/12/03 23:52:14, brettw wrote: > Do ew need the kAlwaysPrintErrorLevel check here? If there is no destinatoin and > no message handler, can even LOG_FATAL go anywhere? If this is needed, we should > mention in the comment why. Yeah, ~LogMessage writes to stderr if severity_ >= kAlwaysPrintErrorLevel, even when g_logging_destination is LOG_NONE. I tried to capture this in the comment... is there another way of wording it that you'd prefer?
On 2015/12/03 23:57:26, skobes wrote: > Yeah, ~LogMessage writes to stderr if severity_ >= kAlwaysPrintErrorLevel, even > when g_logging_destination is LOG_NONE. ^^ This thing you just wrote seems very clear to me in a way that "These are the cases for which ~LogMessage does something." doesn't
On 2015/12/04 21:18:06, brettw wrote: > On 2015/12/03 23:57:26, skobes wrote: > > Yeah, ~LogMessage writes to stderr if severity_ >= kAlwaysPrintErrorLevel, > even > > when g_logging_destination is LOG_NONE. > > ^^ This thing you just wrote seems very clear to me in a way that "These are the > cases for which ~LogMessage does something." doesn't Done.
lgtm
The CQ bit was checked by skobes@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499693002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/...) win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...) win_chromium_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by skobes@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499693002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by skobes@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499693002/120001
Message was sent while issue was closed.
Description was changed from ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. ========== to ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. ==========
Message was sent while issue was closed.
Committed patchset #2 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. ========== to ========== Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. We were using the LAZY_STREAM macro to do this based on --log-level (which defaults to INFO), but not for LoggingSettings::logging_dest == LOG_NONE. Committed: https://crrev.com/c78c0ad7cca1b37761b488e9499d619b21c8016d Cr-Commit-Position: refs/heads/master@{#363565} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/c78c0ad7cca1b37761b488e9499d619b21c8016d Cr-Commit-Position: refs/heads/master@{#363565} |