Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions redfish-core/include/event_service_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class EventServiceManager
};

subscriptionsMap.emplace(id, subValue);
BMCWEB_LOG_ERROR("Subscription ID: {} is loaded", id);

updateNoOfSubscribersCount();

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
5 changes: 3 additions & 2 deletions redfish-core/src/subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ void Subscription::resHandler(const std::shared_ptr<Subscription>& /*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();
}
}
Expand Down