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

Issue 8467028: Enable DVLOG on non official release build based on the parameter passed for InitLogging. (Closed)

Created:
9 years, 1 month ago by lipalani1
Modified:
8 years, 5 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, amit, cbentzel+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org, robertshield, tim (not reviewing)
Visibility:
Public.

Description

Enable DVLOG on non official release build based on the parameter passed for InitLogging. For chrome this would be enabled/disabled based on command line flag. BUG=101424 TEST=base_unittests.exe

Patch Set 1 #

Patch Set 2 : try runs. #

Patch Set 3 : try jobs #

Patch Set 4 : For try jobs. #

Patch Set 5 : For try jobs. #

Patch Set 6 : Self review. #

Patch Set 7 : For review. #

Patch Set 8 : For review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -41 lines) Patch
M base/base_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/base_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M base/logging.h View 1 2 3 4 5 6 6 chunks +31 lines, -10 lines 0 comments Download
M base/logging.cc View 2 chunks +4 lines, -1 line 0 comments Download
M base/logging_unittest.cc View 1 2 3 4 5 6 7 2 chunks +65 lines, -9 lines 0 comments Download
M base/test/test_stub_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/test/test_suite.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/tools/sync_listen_notifications.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/logging_chrome.cc View 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/installer/util/logging_installer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_logging.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/tools/crash_service/main.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome_frame/chrome_tab.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome_frame/crash_reporting/minidump_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cloud_print/virtual_driver/posix/virtual_driver_posix.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M courgette/courgette_tool.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/tools/media_bench/media_bench.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/stress_cache.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/flip_server/flip_in_mem_edsm_server.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/testserver/run_testserver.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/tools/tld_cleanup/tld_cleanup.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/support/webkit_support.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
lipalani1
Will - Please review. I was talking to Fred about this and we decided it ...
9 years, 1 month ago (2011-11-08 00:33:41 UTC) #1
rvargas (doing something else)
Isn't this counter-intuitive? I believe there is a strong reason for having DCHECK enabled for ...
9 years, 1 month ago (2011-11-08 02:21:50 UTC) #2
lipalani
Hi, Just to be clear this does NOT enable dlog for release builds. It only ...
9 years, 1 month ago (2011-11-08 02:44:39 UTC) #3
rvargas (doing something else)
On 2011/11/08 02:44:39, lipalani wrote: > Hi, > Just to be clear this does NOT ...
9 years, 1 month ago (2011-11-08 03:32:59 UTC) #4
lipalani
Not sure I follow your second comment. But to reiterate the reason: There are bugs ...
9 years, 1 month ago (2011-11-08 03:42:48 UTC) #5
lipalani1
Friendly ping for the review!! Thanks!
9 years, 1 month ago (2011-11-08 22:39:10 UTC) #6
rvargas (doing something else)
I still don't believe that this is something that we should do. If we can ...
9 years, 1 month ago (2011-11-10 19:43:21 UTC) #7
lipalani
I had a chat with Ricardo as well. It looks like his main point of ...
9 years, 1 month ago (2011-11-10 20:02:14 UTC) #8
rvargas (doing something else)
On 2011/11/10 20:02:14, lipalani wrote: > I had a chat with Ricardo as well. It ...
9 years, 1 month ago (2011-11-10 20:35:10 UTC) #9
willchan no longer on Chromium
9 years, 1 month ago (2011-11-10 20:56:26 UTC) #10
Thanks for chiming in guys. I haven't even read this, but it sounds like
this change is still contentious. I'd like a bit more consensus or at least
rvargas's opinion being reduced to "I disagree but don't care enough to
fight".

I would also like this change's discussion to move back to chromium-dev.
I'm going to copy/paste discussion back there.

On Thu, Nov 10, 2011 at 12:35 PM, <rvargas@chromium.org> wrote:

> On 2011/11/10 20:02:14, lipalani wrote:
>
>> I had a chat with Ricardo as well. It looks like his main point of concern
>> is that our logging system is heavy weight and slow.
>>
>
>  However both of us do agree that it is important to see what is happening
>> inside a release build if a need arises.
>>
>
>  Even if we build a light and fast logging system we would still need a
>> mechanism for enabling/disabling logging in release builds. I don't think
>> there is disagreement there. And this CL provides the way for that.
>>
>
> Nope. We also disagree there. Having macros that are meant to be
> debug-only be
> now compiled in release builds but somewhat disabled through a command line
> option (or lack of) is counter intuitive, and adds another layer of
> complexity
> to logging.h (even if at this point the change looks quite trivial there).
>
> I don't think the crux of the issue is some future redesign of the logging
> system. It is what I tried to express before: debugging specific issues on
> the
> bots should be a one time add / remove thing. If someone finds him(her)self
> doing that all the time for the same logs, then that points to either the
> lack
> of a better troubleshooting method in that part of the code, or the need
> for a
> LOG (or VLOG) enabled all the time (not Dxx).
>
>
>  Although when we re-design the logging system the guts of it might change
>> the consumers of it can still rely on the fact that DVLOG is on by default
>> in debug, off by default in non release and can be enabled as needed, and
>> stripped out in official builds.(So consumers dont have to change much).
>>
>
>  Also in the past VLOGs have proved really effective to debug some bot only
>> failures(at least I can attest to one instance in which it took us a week
>> to track down a bot only failure and we tracked it down primarily by
>> enabling vlog on certain files and letting it run a couple of days on the
>> bots). Until we redesign the logging system it does not make sense to fly
>> blind with no logs for non official release builds.
>>
>
>  Thanks!
>> regards,
>> Lingesh
>>
>
>  On Thu, Nov 10, 2011 at 11:43 AM, <mailto:rvargas@chromium.org> wrote:
>>
>
>  > I still don't believe that this is something that we should do.
>> >
>> > If we can provide a release but not official build, we can also add very
>> > specific code to debug whatever is happening (being that regular LOGs,
>> > CHECKs,
>> > dialogs or whatever), and remove that debugging crust after the bug is
>> > fixed.
>> >
>> > I don't believe the long term value of debugging log statements(*) to be
>> > high
>> > enough to justify their existence, much less the complexity and
>> > counter-intuitiveness of a general mechanism to enable them to live on
>> > release
>> > builds.
>> >
>> > However, I'm not a base owner, and that means that I could not approve
>> > this CL
>> > even if I wanted it to land.
>> >
>> > (*) I don't mean we should get rid of DLOGS, I mean the type of messages
>> > that
>> > someone has to add to debug something on the bots (for instance)...
>> > something so
>> > uncommon that it's priority goes to DVLOG with some number. If it has
>> that
>> > priority for real (even DLOG(INFO)), it should go away on release.
>> >
>> >
>>
>
> http://codereview.chromium.****org/8467028/%3Chttp://coderevi**
> ew.chromium.org/8467028/ <http://codereview.chromium.org/8467028/>>
>
>> >
>>
>
>
>
>
http://codereview.chromium.**org/8467028/<http://codereview.chromium.org/8467...
>

Powered by Google App Engine
This is Rietveld 408576698