diff options
Diffstat (limited to 'include/ibm/utils.hpp')
-rw-r--r-- | include/ibm/utils.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ibm/utils.hpp b/include/ibm/utils.hpp index bb439ee423..31f0a2e802 100644 --- a/include/ibm/utils.hpp +++ b/include/ibm/utils.hpp @@ -15,26 +15,26 @@ inline bool createDirectory(std::string_view path) // Create persistent directory std::error_code ec; - BMCWEB_LOG_DEBUG << "Creating persistent directory : " << path; + BMCWEB_LOG_DEBUG("Creating persistent directory : {}", path); bool dirCreated = std::filesystem::create_directories(path, ec); if (ec) { - BMCWEB_LOG_ERROR << "Failed to create persistent directory : " << path; + BMCWEB_LOG_ERROR("Failed to create persistent directory : {}", path); return false; } if (dirCreated) { // set the permission of the directory to 700 - BMCWEB_LOG_DEBUG << "Setting the permission to 700"; + BMCWEB_LOG_DEBUG("Setting the permission to 700"); std::filesystem::perms permission = std::filesystem::perms::owner_all; std::filesystem::permissions(path, permission); } else { - BMCWEB_LOG_DEBUG << path << " already exists"; + BMCWEB_LOG_DEBUG("{} already exists", path); } return true; } |