DescriptionVideo 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 #
Messages
Total messages: 15 (10 generated)
|