Remove unnecessary chatter from the log
Adding the default added more error prints that aren't
really errors, it's expected.
Change-Id: Ic5b47d8607f4df6532eb9729502fcdf9c4a071b6
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index fb75856..dd976fc 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -690,10 +690,10 @@
std::cerr << "dbus format error" << dictPair.value() << "\n";
continue;
}
- if (type == nlohmann::json::value_t::object)
- {
- continue; // handled elsewhere
- }
+ }
+ if (type == nlohmann::json::value_t::object)
+ {
+ continue; // handled elsewhere
}
std::string key = jsonPointerPath + "/" + dictPair.key();
if (permission == sdbusplus::asio::PropertyPermission::readWrite)
@@ -803,7 +803,9 @@
}
default:
{
- std::cerr << "Unexpected json type in system configuration \n";
+ std::cerr << "Unexpected json type in system configuration "
+ << dictPair.key() << ": "
+ << dictPair.value().type_name() << "\n";
break;
}
}