diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp index d03e885d8..f515e8884 100644 --- a/redfish-core/include/event_service_manager.hpp +++ b/redfish-core/include/event_service_manager.hpp @@ -141,6 +141,7 @@ class EventServiceManager }; subscriptionsMap.emplace(id, subValue); + BMCWEB_LOG_ERROR("Subscription ID: {} is loaded", id); updateNoOfSubscribersCount(); @@ -443,6 +444,7 @@ class EventServiceManager auto inserted = subscriptionsMap.insert(std::pair(id, subValue)); if (inserted.second) { + BMCWEB_LOG_ERROR("Subscription ID: {} is added", id); break; } --retry; @@ -540,6 +542,7 @@ class EventServiceManager BMCWEB_LOG_ERROR("Subscription {} wasn't in persistent data", id); return true; } + BMCWEB_LOG_ERROR("Subscription ID: {} is deleted", id); persistent_data::EventServiceStore::getInstance() .subscriptionsConfigMap.erase(persistentObj); updateNoOfSubscribersCount(); diff --git a/redfish-core/src/subscription.cpp b/redfish-core/src/subscription.cpp index e9b7d7857..ed7a81fea 100644 --- a/redfish-core/src/subscription.cpp +++ b/redfish-core/src/subscription.cpp @@ -98,8 +98,9 @@ void Subscription::resHandler(const std::shared_ptr& /*self*/, hbTimer.cancel(); if (deleter) { - BMCWEB_LOG_INFO("Subscription {} is deleted after MaxRetryAttempts", - userSub->id); + BMCWEB_LOG_ERROR( + "Subscription {} is deleted after MaxRetryAttempts", + userSub->id); deleter(); } }