commit | 5203602888ecd350bafc941b932ad3e01350be19 | [log] [tgz] |
---|---|---|
author | Tim Chao <Tim.Chao@quantatw.com> | Wed Aug 23 17:12:28 2023 +0800 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Mon Oct 02 20:34:36 2023 +0000 |
tree | f914f81a1da27ec6314c7a6527347fff93b9236b | |
parent | fd9c361724d02d5f84b354a1f9887067d26df4e9 [diff] [blame] |
Watchdog: Add Notlog setting function Add function to set Notlog property to implement the function of the watchdog not recording logs. Related commit: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/66240 https://gerrit.openbmc.org/c/openbmc/phosphor-watchdog/+/66242 Change-Id: Ia90c345a72f8f877aa8f8216337a1267f09b839a Signed-off-by: Tim Chao <Tim.Chao@quantatw.com>
diff --git a/app/watchdog_service.cpp b/app/watchdog_service.cpp index e17f146..f9fb625 100644 --- a/app/watchdog_service.cpp +++ b/app/watchdog_service.cpp
@@ -183,6 +183,11 @@ setProperty("Enabled", enabled); } +void WatchdogService::setNotlog(bool Notlog) +{ + setProperty("Notlog", Notlog); +} + void WatchdogService::setExpireAction(Action expireAction) { setProperty("ExpireAction", convertForMessage(expireAction));