summarylogtreecommitdiffstats
path: root/disable-logging.patch
blob: 07a7d6c4070993d57cf3b877583c01efac4b8848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- base/logging.h	2025-06-16 23:26:50.000000000 +0200
+++ base/logging.h	2025-06-21 15:10:12.638024686 +0200
@@ -428,8 +428,7 @@
 // FATAL is always enabled and required to be resolved in compile time for
 // LOG(FATAL) to be properly understood as [[noreturn]].
 #define LOG_IS_ON(severity)                                     \
-  (::logging::LOGGING_##severity == ::logging::LOGGING_FATAL || \
-   ::logging::ShouldCreateLogMessage(::logging::LOGGING_##severity))
+  (::logging::LOGGING_##severity == ::logging::LOGGING_FATAL)

 // Define a default ENABLED_VLOG_LEVEL if it is not defined. The macros allows
 // code to enable vlog level at build time without the need of --vmodule