Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Issue 1499693002: Don't evaluate args to LOG(INFO) and LOG(WARNING) in release builds. (Closed)

Created:
5 years ago by skobes
Modified:
5 years ago
Reviewers:
brettw
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : clarify comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
M base/logging.h View 2 chunks +4 lines, -1 line 0 comments Download
M base/logging.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M base/logging_unittest.cc View 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 29 (15 generated)
skobes
5 years ago (2015-12-03 23:29:43 UTC) #9
skobes
Alternatively we could make InitChromeLogging call SetMinLogLevel(2). But this seems better.
5 years ago (2015-12-03 23:38:25 UTC) #10
brettw
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#newcode399 base/logging.cc:399: severity >= kAlwaysPrintErrorLevel; Do ew need the kAlwaysPrintErrorLevel check ...
5 years ago (2015-12-03 23:52:14 UTC) #11
skobes
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#newcode399 base/logging.cc:399: severity >= kAlwaysPrintErrorLevel; On 2015/12/03 23:52:14, brettw wrote: > ...
5 years ago (2015-12-03 23:57:26 UTC) #12
brettw
On 2015/12/03 23:57:26, skobes wrote: > Yeah, ~LogMessage writes to stderr if severity_ >= kAlwaysPrintErrorLevel, ...
5 years ago (2015-12-04 21:18:06 UTC) #13
skobes
On 2015/12/04 21:18:06, brettw wrote: > On 2015/12/03 23:57:26, skobes wrote: > > Yeah, ~LogMessage ...
5 years ago (2015-12-04 21:23:08 UTC) #14
brettw
lgtm
5 years ago (2015-12-04 21:24:44 UTC) #15
commit-bot: I haz the power
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
5 years ago (2015-12-04 21:45:55 UTC) #17
commit-bot: I haz the power
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/builds/75730) win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_TIMED_OUT, ...
5 years ago (2015-12-05 03:24:32 UTC) #19
commit-bot: I haz the power
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
5 years ago (2015-12-05 04:33:33 UTC) #21
commit-bot: I haz the power
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 ...
5 years ago (2015-12-05 06:35:49 UTC) #23
commit-bot: I haz the power
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
5 years ago (2015-12-07 16:54:53 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:120001)
5 years ago (2015-12-07 20:21:32 UTC) #27
commit-bot: I haz the power
5 years ago (2015-12-07 20:22:20 UTC) #29
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c78c0ad7cca1b37761b488e9499d619b21c8016d
Cr-Commit-Position: refs/heads/master@{#363565}

Powered by Google App Engine
This is Rietveld 408576698