Commit 851431fd authored by Yuchen Liu's avatar Yuchen Liu Committed by Commit Bot

Override DVLOG(0, 1, 2) to LOG when enable_logging_override is on

To avoid log spam, only show DVLOG(0, 1, 2) on debug build.

Bug: internal b/170151760
Test: Build and run. DVLOG(3, 4, 5) disappear
Change-Id: Ieeb415c60c952e251a551e02df467d2f7861910e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2451304Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarXiaohan Wang <xhwang@chromium.org>
Commit-Queue: Yuchen Liu <yucliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814077}
parent 18253273
......@@ -15,8 +15,17 @@
#if !defined(DVLOG)
#error This file must be included after base/logging.h.
#endif
#define __DVLOG_0 LOG(INFO)
#define __DVLOG_1 LOG(INFO)
#define __DVLOG_2 LOG(INFO)
#define __DVLOG_3 EAT_STREAM_PARAMETERS
#define __DVLOG_4 EAT_STREAM_PARAMETERS
#define __DVLOG_5 EAT_STREAM_PARAMETERS
#undef DVLOG
#define DVLOG(verboselevel) LOG(INFO)
#define DVLOG(verboselevel) __DVLOG_##verboselevel
#endif // BUILDFLAG(ENABLE_LOGGING_OVERRIDE)
#endif // MEDIA_BASE_LOGGING_OVERRIDE_IF_ENABLED_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment