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.build b/meson.build
index 06035ff..5021056 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,10 @@
add_project_arguments('-DCRASHDUMP', language : 'cpp')
endif
+if(get_option('send-to-logger').enabled())
+ add_project_arguments('-DSEND_TO_LOGGING_SERVICE', language : 'cpp')
+endif
+
sdbusplus = dependency('sdbusplus')
gpiodcxx = dependency('libgpiodcxx',
default_options: ['bindings=cxx'],
@@ -46,12 +50,15 @@
language : 'cpp'
)
+phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
+
bindir = get_option('prefix') + '/' + get_option('bindir')
deps = [
boost,
gpiodcxx,
sdbusplus,
+ phosphor_dbus_interfaces,
]
if(get_option('libpeci').enabled())