From 3bc301d4f9fd00911cbb26c90a9e6e829c4b14bc Mon Sep 17 00:00:00 2001 From: Joshua Peraza Date: Mon, 26 Nov 2018 15:12:38 -0800 Subject: Conditionally define BPLOG_LAZY_STREAM This allows BPLOG_LAZY_STREAM to be overridden by BP_LOGGING_INCLUDE Change-Id: I5c9ec19b619ad5db9e97f3a1813b0f965a357b38 Reviewed-on: https://chromium-review.googlesource.com/c/1351361 Reviewed-by: Ivan Penkov --- src/processor/logging.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/processor/logging.h b/src/processor/logging.h index af539a4f..a9f30920 100644 --- a/src/processor/logging.h +++ b/src/processor/logging.h @@ -147,9 +147,11 @@ int ErrnoString(string *error_string); #define BPLOG_INIT(pargc, pargv) #endif // BPLOG_INIT +#ifndef BPLOG_LAZY_STREAM #define BPLOG_LAZY_STREAM(stream, condition) \ !(condition) ? (void) 0 : \ google_breakpad::LogMessageVoidify() & (BPLOG_ ## stream) +#endif #ifndef BPLOG_MINIMUM_SEVERITY #define BPLOG_MINIMUM_SEVERITY SEVERITY_INFO -- cgit v1.2.1