diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2023-02-22 22:23:23 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2023-03-09 05:22:38 +0300 |
commit | a7405d5fe77fa9e324c22cb29ea08029fc023f4e (patch) | |
tree | a5127a109f61dafb3c08c0957bdf7b38b9f351d6 /include/ibm | |
parent | 0e88cb374b42224753e78ea1a98b349511fbb9e6 (diff) | |
download | bmcweb-a7405d5fe77fa9e324c22cb29ea08029fc023f4e.tar.xz |
Move logging level to WARNING for 404
These are 4xx errors, 404 not found. Move the logging to WARNING so they
don't log unless WARNING level is enabled. This follows the guidance in
the commit below.
Tested: None.
Change-Id: I38b2bec64507d75286f79d61acf7a96226598e0b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/ibm')
-rw-r--r-- | include/ibm/management_console_rest.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp index 6e4e7bbbfc..c56b3909c1 100644 --- a/include/ibm/management_console_rest.hpp +++ b/include/ibm/management_console_rest.hpp @@ -308,7 +308,7 @@ inline void handleFileGet(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, "/var/lib/bmcweb/ibm-management-console/configfiles/" + fileID); if (!std::filesystem::exists(loc) || !std::filesystem::is_regular_file(loc)) { - BMCWEB_LOG_ERROR << loc.string() << " Not found"; + BMCWEB_LOG_WARNING << loc.string() << " Not found"; asyncResp->res.result(boost::beast::http::status::not_found); asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg; return; @@ -317,7 +317,7 @@ inline void handleFileGet(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, std::ifstream readfile(loc.string()); if (!readfile) { - BMCWEB_LOG_ERROR << loc.string() << " Not found"; + BMCWEB_LOG_WARNING << loc.string() << " Not found"; asyncResp->res.result(boost::beast::http::status::not_found); asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg; return; @@ -358,7 +358,7 @@ inline void } else { - BMCWEB_LOG_ERROR << "File not found!\n"; + BMCWEB_LOG_WARNING << "File not found!\n"; asyncResp->res.result(boost::beast::http::status::not_found); asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg; } |