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

Issue 1609563002: Remove logging::LogAtLevel and rewrite its sole caller. (Closed)

Created:
4 years, 11 months ago by jbroman
Modified:
4 years, 11 months ago
Reviewers:
danakj, hashimoto
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

Remove logging::LogAtLevel and rewrite its sole caller. This method causes log statements attributed to logging.h (inside the LogAtLevel function) to be written, which is less than useful. It only has one caller, which can easily be adjusted to use the ordinary LOG(...) macro with a small adjustment. After this change, the log output is correctly attributed to object_proxy.cc. Committed: https://crrev.com/a14517ffd5565b7572ead4014b9953edc4b17009 Cr-Commit-Position: refs/heads/master@{#370905}

Patch Set 1 #

Total comments: 3

Patch Set 2 : conditionally use LOG(ERROR) or LOG(WARNING) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M base/logging.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M dbus/object_proxy.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
danakj
Thanks! https://codereview.chromium.org/1609563002/diff/1/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1609563002/diff/1/base/logging.h#newcode378 base/logging.h:378: #define LOG_AT_LEVEL(severity) \ I like this better than ...
4 years, 11 months ago (2016-01-19 21:10:19 UTC) #2
jbroman
danakj for base/OWNERS hashimoto for dbus/OWNERS https://codereview.chromium.org/1609563002/diff/1/dbus/object_proxy.cc File dbus/object_proxy.cc (right): https://codereview.chromium.org/1609563002/diff/1/dbus/object_proxy.cc#newcode574 dbus/object_proxy.cc:574: LOG_AT_LEVEL(severity) << "Failed ...
4 years, 11 months ago (2016-01-19 21:28:11 UTC) #5
danakj
LGTM
4 years, 11 months ago (2016-01-19 21:29:01 UTC) #6
jbroman
ping hashimoto
4 years, 11 months ago (2016-01-21 15:26:22 UTC) #7
hashimoto
lgtm
4 years, 11 months ago (2016-01-22 03:03:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609563002/20001
4 years, 11 months ago (2016-01-22 03:18:46 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-22 04:49:32 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 04:50:43 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a14517ffd5565b7572ead4014b9953edc4b17009
Cr-Commit-Position: refs/heads/master@{#370905}

Powered by Google App Engine
This is Rietveld 408576698