summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redfish-core/include/redfish.hpp2
-rw-r--r--redfish-core/lib/log_services.hpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index 2ca3dc7c51..5895ee1c66 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -83,11 +83,11 @@ 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<JournalEventLogEntryCollection>(app));
nodes.emplace_back(std::make_unique<JournalEventLogEntry>(app));
+ nodes.emplace_back(std::make_unique<JournalEventLogClear>(app));
#endif
nodes.emplace_back(std::make_unique<BMCLogServiceCollection>(app));
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 233578eab3..d08d6d047b 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -508,10 +508,10 @@ class EventLogService : public Node
}
};
-class EventLogClear : public Node
+class JournalEventLogClear : public Node
{
public:
- EventLogClear(CrowApp &app) :
+ JournalEventLogClear(CrowApp &app) :
Node(app, "/redfish/v1/Systems/system/LogServices/EventLog/Actions/"
"LogService.ClearLog/")
{
@@ -1894,7 +1894,7 @@ class DBusLogServiceActionsClear : public Node
public:
DBusLogServiceActionsClear(CrowApp &app) :
Node(app, "/redfish/v1/Systems/system/LogServices/EventLog/Actions/"
- "LogService.Reset")
+ "LogService.ClearLog")
{
entityPrivileges = {
{boost::beast::http::verb::get, {{"Login"}}},