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

Issue 2365533004: Video Capture Device Win: cleanup error logging (Closed)

Created:
4 years, 3 months ago by mcasas
Modified:
4 years, 3 months ago
Reviewers:
xianglu
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Video Capture Device Win: cleanup error logging While writing other code, I found out that the error logging in VCDWin is cumbersome: it is too verbose on Init() and doesn't dump the HRESULT while capturing. So: This CL adds a macro DLOG_IF_WITH_HRESULT() that logs an error message _and_ the stringified HRESULT. It also sends an HRESULT to SetErrorMessage() to dump it on stdout. In my experience, all these loggings are only used by developers to try and guess what goes wrong in Win bots when those fail, so the less release code they take up the better. BUG=405016, 648490 Committed: https://crrev.com/63038c90b7a3419742d4c6781f47560a4dfb63f9 Cr-Commit-Position: refs/heads/master@{#420493}

Patch Set 1 #

Total comments: 1

Patch Set 2 : xianglu@ naming suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -67 lines) Patch
M media/capture/video/win/video_capture_device_win.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/capture/video/win/video_capture_device_win.cc View 1 13 chunks +51 lines, -66 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
mcasas
xianglu@ PTAL
4 years, 3 months ago (2016-09-22 19:33:50 UTC) #5
xianglu
lgtm. % one comment https://codereview.chromium.org/2365533004/diff/60001/media/capture/video/win/video_capture_device_win.cc File media/capture/video/win/video_capture_device_win.cc (right): https://codereview.chromium.org/2365533004/diff/60001/media/capture/video/win/video_capture_device_win.cc#newcode28 media/capture/video/win/video_capture_device_win.cc:28: #define DLOG_IF_WITH_HRESULT(message, hr) \ Would ...
4 years, 3 months ago (2016-09-22 20:55:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365533004/80001
4 years, 3 months ago (2016-09-22 21:42:56 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 3 months ago (2016-09-22 23:09:33 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 23:12:53 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/63038c90b7a3419742d4c6781f47560a4dfb63f9
Cr-Commit-Position: refs/heads/master@{#420493}

Powered by Google App Engine
This is Rietveld 408576698