[dbus] change info logs of property handler to debug logs (#1941)
Currently each time dbus property handler is called, there will be a
log. This will cause flooding log when the dbus client is doing
polling.
diff --git a/src/dbus/server/dbus_object.cpp b/src/dbus/server/dbus_object.cpp
index 65e0935..64c384a 100644
--- a/src/dbus/server/dbus_object.cpp
+++ b/src/dbus/server/dbus_object.cpp
@@ -115,7 +115,7 @@
if (dbus_message_get_type(aMessage) == DBUS_MESSAGE_TYPE_METHOD_CALL && iter != mMethodHandlers.end())
{
- otbrLogInfo("Handling method %s", memberName.c_str());
+ otbrLogDebug("Handling method %s", memberName.c_str());
if (otbrLogGetLevel() >= OTBR_LOG_DEBUG)
{
DumpDBusMessage(*aMessage);
@@ -144,7 +144,7 @@
{
auto propertyIter = mGetPropertyHandlers.find(interfaceName);
- otbrLogInfo("GetProperty %s.%s", interfaceName.c_str(), propertyName.c_str());
+ otbrLogDebug("GetProperty %s.%s", interfaceName.c_str(), propertyName.c_str());
VerifyOrExit(propertyIter != mGetPropertyHandlers.end(), error = OT_ERROR_NOT_FOUND);
{
DBusMessageIter replyIter;