summarylogtreecommitdiffstats
path: root/disable-logging.patch
blob: 463139f84ed7edf76ee2e4a9707b759f49986324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- base/logging.h	2024-02-15 14:10:48.799441080 +0100
+++ base/logging.h	2024-02-15 14:14:20.024719767 +0100
@@ -419,9 +419,7 @@
 // always fire if they fail.
 // 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))
+#define LOG_IS_ON(severity) false

 // 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