Optionally send reports to D-Bus Logging
Follow the trend set by common OpenBMC components (phosphor-sel-logger,
dbus-sensors etc.) and allow to send all essential reports to the
dedicated Logging interface instead of the system journal directly.
Tested: built with "send-to-logger" option enabled and run on a system
where mem_thermtrip_monitor detected a problem. Observed a message
becoming visible via Redfish (bmcweb built with
"redfish-dbus-log=enabled").
Change-Id: I29287972d85433a7e85660c82fe95fff5b023e5a
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
diff --git a/meson.options b/meson.options
index 2e05965..a8637ae 100644
--- a/meson.options
+++ b/meson.options
@@ -18,3 +18,10 @@
value: 'disabled',
description: 'Enable unit tests',
)
+
+option(
+ 'send-to-logger',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Use D-Bus Logging interface for reporting'
+)