summarylogtreecommitdiffstats
path: root/disable-logging.patch
diff options
context:
space:
mode:
authorĽubomír Kučera2023-11-17 18:31:22 +0100
committerĽubomír Kučera2023-11-17 18:31:22 +0100
commit70636bc5b1d0533a32914d58e3f72221e96d0e3c (patch)
tree6914bd771b895b37132809a05fd3c28c3e6f9d8b /disable-logging.patch
parentbaa74b3564a6a2fedfae0e3d69a101ab296c3376 (diff)
downloadaur-70636bc5b1d0533a32914d58e3f72221e96d0e3c.tar.gz
Disable logging
Diffstat (limited to 'disable-logging.patch')
-rw-r--r--disable-logging.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/disable-logging.patch b/disable-logging.patch
new file mode 100644
index 000000000000..7af6ae764ca1
--- /dev/null
+++ b/disable-logging.patch
@@ -0,0 +1,12 @@
+--- base/logging.h 2023-11-17 17:55:03.437368494 +0100
++++ base/logging.h 2023-11-17 17:56:23.320314373 +0100
+@@ -440,8 +440,7 @@
+ // As special cases, we can assume that LOG_IS_ON(FATAL) always holds. Also,
+ // LOG_IS_ON(DFATAL) always holds in debug mode. In particular, CHECK()s will
+ // always fire if they fail.
+-#define LOG_IS_ON(severity) \
+- (::logging::ShouldCreateLogMessage(::logging::LOGGING_##severity))
++#define LOG_IS_ON(severity) false
+
+ #if !BUILDFLAG(USE_RUNTIME_VLOG)
+