diff --git a/http/http_connection.hpp b/http/http_connection.hpp index df965c3b8..d3eefa4e4 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -90,8 +90,8 @@ class Connection : connectionCount++; - BMCWEB_LOG_DEBUG("{} Connection created, total {}", logPtr(this), - connectionCount); + BMCWEB_LOG_WARNING("{} Connection created, total {}", logPtr(this), + connectionCount); } ~Connection() @@ -100,8 +100,8 @@ class Connection : cancelDeadlineTimer(); connectionCount--; - BMCWEB_LOG_DEBUG("{} Connection closed, total {}", logPtr(this), - connectionCount); + BMCWEB_LOG_WARNING("{} Connection closed, total {}", logPtr(this), + connectionCount); } Connection(const Connection&) = delete; @@ -404,10 +404,10 @@ class Connection : } } - BMCWEB_LOG_INFO("Request: {} HTTP/{}.{} {} {} {}", logPtr(this), - req->version() / 10, req->version() % 10, - req->methodString(), req->target(), - req->ipAddress.to_string()); + BMCWEB_LOG_WARNING("Request: {} HTTP/{}.{} {} {} {}", logPtr(this), + req->version() / 10, req->version() % 10, + req->methodString(), req->target(), + req->ipAddress.to_string()); if (res.completed) { diff --git a/redfish-core/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp index 31ee12a1d..0cce3c7b2 100644 --- a/redfish-core/include/event_service_manager.hpp +++ b/redfish-core/include/event_service_manager.hpp @@ -123,6 +123,7 @@ class EventServiceManager }; subscriptionsMap.emplace(id, subValue); + BMCWEB_LOG_WARNING("Subscription ID: {} is loaded", id); updateNoOfSubscribersCount(); @@ -326,6 +327,7 @@ class EventServiceManager auto inserted = subscriptionsMap.insert(std::pair(id, subValue)); if (inserted.second) { + BMCWEB_LOG_WARNING("Subscription ID: {} is added", id); break; } --retry; @@ -431,6 +433,7 @@ class EventServiceManager BMCWEB_LOG_ERROR("Subscription {} wasn't in persistent data", id); return true; } + BMCWEB_LOG_WARNING("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 f81fdc6c9..c47963761 100644 --- a/redfish-core/src/subscription.cpp +++ b/redfish-core/src/subscription.cpp @@ -85,8 +85,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_WARNING( + "Subscription {} is deleted after MaxRetryAttempts", + userSub->id); deleter(); } }