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>
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index 2fa979c..23eada6 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -262,10 +262,10 @@
}
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 5a83793..b0c6291 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -135,8 +135,8 @@
{
// 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.