summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2021-11-12 00:59:30 +0300
committerEd Tanous <ed@tanous.net>2021-11-16 01:57:54 +0300
commit54fbf177ec555ad06229c4c156add8952929bfcf (patch)
tree3af24aac73a347af09448e543f57440d0b21b791
parent91995f3272010875e1559397e98ca93354066a0e (diff)
downloadbmcweb-54fbf177ec555ad06229c4c156add8952929bfcf.tar.xz
reduce error traces in priv and chassis code
These are not error paths so do not log them as errors Tested: - None other then CI. Changes are very simple. Change-Id: I65b99b466ba2d59c304cd80c88c2c81b940829b9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r--redfish-core/include/privileges.hpp4
-rw-r--r--redfish-core/lib/chassis.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index 2fa979c4fb..23eada632b 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -262,10 +262,10 @@ inline bool isOperationAllowedWithPrivileges(
}
for (auto& requiredPrivileges : operationPrivilegesRequired)
{
- BMCWEB_LOG_ERROR << "Checking operation privileges...";
+ BMCWEB_LOG_DEBUG << "Checking operation privileges...";
if (userPrivileges.isSupersetOf(requiredPrivileges))
{
- BMCWEB_LOG_ERROR << "...success";
+ BMCWEB_LOG_DEBUG << "...success";
return true;
}
}
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 5a837936ee..b0c6291899 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -135,8 +135,8 @@ inline void getPhysicalSecurityData(std::shared_ptr<bmcweb::AsyncResp> aResp)
{
// do not add err msg in redfish response, because this is not
// mandatory property
- BMCWEB_LOG_ERROR << "DBUS error: no matched iface " << ec
- << "\n";
+ BMCWEB_LOG_INFO << "DBUS error: no matched iface " << ec
+ << "\n";
return;
}
// Iterate over all retrieved ObjectPaths.