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

Issue 2854853007: Add logging for dup() failure in SharedMemoryHandle. (Closed)

Created:
3 years, 7 months ago by erikchen
Modified:
3 years, 7 months ago
Reviewers:
Robert Sesek, Nico
CC:
chromium-reviews, danakj+watch_chromium.org, mac-reviews_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logging for dup() failure in SharedMemoryHandle. BUG=716536

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M base/memory/shared_memory_handle_mac.cc View 2 chunks +4 lines, -1 line 0 comments Download
M base/memory/shared_memory_handle_posix.cc View 1 chunk +3 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (7 generated)
erikchen
thakis: Please review.
3 years, 7 months ago (2017-05-04 03:08:23 UTC) #4
Nico
are you debugging some problem? what's this for?
3 years, 7 months ago (2017-05-04 14:02:28 UTC) #7
erikchen
On 2017/05/04 14:02:28, Nico wrote: > are you debugging some problem? what's this for? I ...
3 years, 7 months ago (2017-05-04 16:02:29 UTC) #8
Nico
rsesek, what do you want this for? (I'm not against adding it if someone looks ...
3 years, 7 months ago (2017-05-04 16:04:51 UTC) #9
Robert Sesek
On 2017/05/04 16:04:51, Nico wrote: > rsesek, what do you want this for? > > ...
3 years, 7 months ago (2017-05-04 16:21:20 UTC) #10
Nico
On 2017/05/04 16:21:20, Robert Sesek wrote: > On 2017/05/04 16:04:51, Nico wrote: > > rsesek, ...
3 years, 7 months ago (2017-05-04 17:05:42 UTC) #11
erikchen
On 2017/05/04 17:05:42, Nico wrote: > On 2017/05/04 16:21:20, Robert Sesek wrote: > > On ...
3 years, 7 months ago (2017-05-04 17:12:26 UTC) #12
Robert Sesek
3 years, 7 months ago (2017-05-05 16:11:39 UTC) #14
Message was sent while issue was closed.
On 2017/05/04 17:05:42, Nico wrote:
> On 2017/05/04 16:21:20, Robert Sesek wrote:
> > On 2017/05/04 16:04:51, Nico wrote:
> > > rsesek, what do you want this for?
> > > 
> > > (I'm not against adding it if someone looks at it, just curious what it's
> > being
> > > used for.)
> > 
> > I think good logging makes debugging easier.
> 
> Having everything logs makes for super noisy tests. The styleguide says
> something like "log if you're debugging something, else don't" somewhere iirc.
> 
> lgtm if you need it for something since I don't expect this to be noisy, but
> test output is full of well-intentioned, bad logging.

Chromium is wildly inconsistent about logging practices. If this were going to
produce a lot of noisy logging in tests, then it probably wouldn't be a useful
log to have in general since it'd fire too frequently. But since this should be
an exceptional case, I think logging is warranted.

Powered by Google App Engine
This is Rietveld 408576698