| Index: base/mac/mach_logging.h
|
| diff --git a/base/mac/mach_logging.h b/base/mac/mach_logging.h
|
| index 589dde20173de9f99591a13aaf8088a40b7c0364..dcbaa7cf8f7ed5fa1f8eef4a21c0fcaae04cf14d 100644
|
| --- a/base/mac/mach_logging.h
|
| +++ b/base/mac/mach_logging.h
|
| @@ -61,6 +61,12 @@ class BootstrapLogMessage : public logging::LogMessage {
|
|
|
| } // namespace logging
|
|
|
| +#if defined(NDEBUG)
|
| +#define MACH_DVLOG_IS_ON(verbose_level) 0
|
| +#else
|
| +#define MACH_DVLOG_IS_ON(verbose_level) VLOG_IS_ON(verbose_level)
|
| +#endif
|
| +
|
| #define MACH_LOG_STREAM(severity, mach_err) \
|
| COMPACT_GOOGLE_LOG_EX_ ## severity(MachLogMessage, mach_err).stream()
|
| #define MACH_VLOG_STREAM(verbose_level, mach_err) \
|
| @@ -92,16 +98,18 @@ class BootstrapLogMessage : public logging::LogMessage {
|
|
|
| #define MACH_DVLOG(verbose_level, mach_err) \
|
| LAZY_STREAM(MACH_VLOG_STREAM(verbose_level, mach_err), \
|
| - DVLOG_IS_ON(verbose_level))
|
| + MACH_DVLOG_IS_ON(verbose_level))
|
| #define MACH_DVLOG_IF(verbose_level, condition, mach_err) \
|
| - LAZY_STREAM(MACH_VLOG_STREAM(verbose_level, mach_err) \
|
| - DVLOG_IS_ON(verbose_level) && (condition))
|
| + LAZY_STREAM(MACH_VLOG_STREAM(verbose_level, mach_err), \
|
| + MACH_DVLOG_IS_ON(verbose_level) && (condition))
|
|
|
| #define MACH_DCHECK(condition, mach_err) \
|
| LAZY_STREAM(MACH_LOG_STREAM(FATAL, mach_err), \
|
| DCHECK_IS_ON && !(condition)) \
|
| << "Check failed: " # condition << ". "
|
|
|
| +#define BOOTSTRAP_DVLOG_IS_ON MACH_DVLOG_IS_ON
|
| +
|
| #define BOOTSTRAP_LOG_STREAM(severity, bootstrap_err) \
|
| COMPACT_GOOGLE_LOG_EX_ ## severity(BootstrapLogMessage, \
|
| bootstrap_err).stream()
|
| @@ -136,10 +144,10 @@ class BootstrapLogMessage : public logging::LogMessage {
|
|
|
| #define BOOTSTRAP_DVLOG(verbose_level, bootstrap_err) \
|
| LAZY_STREAM(BOOTSTRAP_VLOG_STREAM(verbose_level, bootstrap_err), \
|
| - DVLOG_IS_ON(verbose_level))
|
| + BOOTSTRAP_DVLOG_IS_ON(verbose_level))
|
| #define BOOTSTRAP_DVLOG_IF(verbose_level, condition, bootstrap_err) \
|
| - LAZY_STREAM(BOOTSTRAP_VLOG_STREAM(verbose_level, bootstrap_err) \
|
| - DVLOG_IS_ON(verbose_level) && (condition))
|
| + LAZY_STREAM(BOOTSTRAP_VLOG_STREAM(verbose_level, bootstrap_err), \
|
| + BOOTSTRAP_DVLOG_IS_ON(verbose_level) && (condition))
|
|
|
| #define BOOTSTRAP_DCHECK(condition, bootstrap_err) \
|
| LAZY_STREAM(BOOTSTRAP_LOG_STREAM(FATAL, bootstrap_err), \
|
|
|