summaryrefslogtreecommitdiff
path: root/include/sessions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/sessions.hpp')
-rw-r--r--include/sessions.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/sessions.hpp b/include/sessions.hpp
index 9179723e5f..cb7f78e78a 100644
--- a/include/sessions.hpp
+++ b/include/sessions.hpp
@@ -72,8 +72,9 @@ struct UserSession
element.value().get_ptr<const std::string*>();
if (thisValue == nullptr)
{
- BMCWEB_LOG_ERROR << "Error reading persistent store. Property "
- << element.key() << " was not of type string";
+ BMCWEB_LOG_ERROR(
+ "Error reading persistent store. Property {} was not of type string",
+ element.key());
continue;
}
if (element.key() == "unique_id")
@@ -103,9 +104,9 @@ struct UserSession
else
{
- BMCWEB_LOG_ERROR
- << "Got unexpected property reading persistent file: "
- << element.key();
+ BMCWEB_LOG_ERROR(
+ "Got unexpected property reading persistent file: {}",
+ element.key());
continue;
}
}
@@ -116,8 +117,8 @@ struct UserSession
if (userSession->uniqueId.empty() || userSession->username.empty() ||
userSession->sessionToken.empty() || userSession->csrfToken.empty())
{
- BMCWEB_LOG_DEBUG << "Session missing required security "
- "information, refusing to restore";
+ BMCWEB_LOG_DEBUG("Session missing required security "
+ "information, refusing to restore");
return nullptr;
}