summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/async_resolve.hpp3
-rw-r--r--include/ibm/management_console_rest.hpp4
-rw-r--r--include/openbmc_dbus_rest.hpp2
-rw-r--r--include/webassets.hpp6
4 files changed, 8 insertions, 7 deletions
diff --git a/include/async_resolve.hpp b/include/async_resolve.hpp
index 0945001537..7387f4de29 100644
--- a/include/async_resolve.hpp
+++ b/include/async_resolve.hpp
@@ -89,7 +89,8 @@ class Resolver
return;
}
endpoint.port(portNum);
- BMCWEB_LOG_DEBUG << "resolved endpoint is : " << endpoint;
+ BMCWEB_LOG_DEBUG << "resolved endpoint is : "
+ << endpoint.address().to_string();
endpointList.push_back(endpoint);
}
// All the resolved data is filled in the endpointList
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index a9e0ec4540..8e307464ca 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -136,7 +136,7 @@ inline void handleFilePut(const crow::Request& req,
// Form the file path
loc /= fileID;
- BMCWEB_LOG_DEBUG << "Writing to the file: " << loc;
+ BMCWEB_LOG_DEBUG << "Writing to the file: " << loc.string();
// Check if the same file exists in the directory
bool fileExists = std::filesystem::exists(loc, ec);
@@ -305,7 +305,7 @@ inline void handleFileGet(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
"/var/lib/bmcweb/ibm-management-console/configfiles/" + fileID);
if (!std::filesystem::exists(loc))
{
- BMCWEB_LOG_ERROR << loc << "Not found";
+ BMCWEB_LOG_ERROR << loc.string() << "Not found";
asyncResp->res.result(boost::beast::http::status::not_found);
asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg;
return;
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 9f84309ee4..af6a720ceb 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -2227,7 +2227,7 @@ inline void requestRoutes(App& app)
if (!std::filesystem::exists(loc) ||
!std::filesystem::is_directory(loc))
{
- BMCWEB_LOG_ERROR << loc << "Not found";
+ BMCWEB_LOG_ERROR << loc.string() << "Not found";
asyncResp->res.result(
boost::beast::http::status::not_found);
return;
diff --git a/include/webassets.hpp b/include/webassets.hpp
index 8f41f2f4a8..36c3f8d284 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -57,7 +57,7 @@ inline void requestRoutes(App& app)
std::filesystem::recursive_directory_iterator dirIter(rootpath, ec);
if (ec)
{
- BMCWEB_LOG_ERROR << "Unable to find or open " << rootpath
+ BMCWEB_LOG_ERROR << "Unable to find or open " << rootpath.string()
<< " static file hosting disabled";
return;
}
@@ -117,7 +117,7 @@ inline void requestRoutes(App& app)
{
// Got a duplicated path. This is expected in certain
// situations
- BMCWEB_LOG_DEBUG << "Got duplicated path " << webpath;
+ BMCWEB_LOG_DEBUG << "Got duplicated path " << webpath.string();
continue;
}
const char* contentType = nullptr;
@@ -137,7 +137,7 @@ inline void requestRoutes(App& app)
if (contentType == nullptr)
{
BMCWEB_LOG_ERROR << "Cannot determine content-type for "
- << absolutePath << " with extension "
+ << absolutePath.string() << " with extension "
<< extension;
}