diff options
| author | Anthony Wilson <wilsonan@us.ibm.com> | 2019-04-12 08:23:05 -0500 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-07-03 16:48:58 +0000 |
| commit | 08a4e4b592e582c8534f59dc73320763a07a3bbb (patch) | |
| tree | a544573d922f98a7f7265033e3d1a0feb403abf2 /redfish-core/include | |
| parent | d1d50814d1756a33755dd9de5c62124223cedc98 (diff) | |
| download | bmcweb-08a4e4b592e582c8534f59dc73320763a07a3bbb.tar.gz bmcweb-08a4e4b592e582c8534f59dc73320763a07a3bbb.zip | |
redfish: Give DBus event logging its own classes
Since the DBus implementation of event logging is
completely different than the journal implementation,
moved it to its own class to be consistent.
Tested: Verified both implementations work the same
as before the class split.
Change-Id: I95e3b837f9d99b78034695545ab5791386d94a13
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
Diffstat (limited to 'redfish-core/include')
| -rw-r--r-- | redfish-core/include/redfish.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index 8cb9e01..718b082 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -82,8 +82,9 @@ class RedfishService nodes.emplace_back(std::make_unique<SystemLogServiceCollection>(app)); nodes.emplace_back(std::make_unique<EventLogService>(app)); nodes.emplace_back(std::make_unique<EventLogClear>(app)); +#ifndef BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES nodes.emplace_back(std::make_unique<EventLogEntryCollection>(app)); - nodes.emplace_back(std::make_unique<EventLogEntry>(app)); +#endif nodes.emplace_back(std::make_unique<BMCLogServiceCollection>(app)); #ifdef BMCWEB_ENABLE_REDFISH_BMC_JOURNAL @@ -112,6 +113,8 @@ class RedfishService nodes.emplace_back(std::make_unique<SystemActionsReset>(app)); #ifdef BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES nodes.emplace_back(std::make_unique<DBusLogServiceActionsClear>(app)); + nodes.emplace_back(std::make_unique<DBusEventLogEntryCollection>(app)); + nodes.emplace_back(std::make_unique<DBusEventLogEntry>(app)); #endif nodes.emplace_back( |

