From 10a0016b946786ff1c6aba143328a5469827e0f9 Mon Sep 17 00:00:00 2001 From: hwzhangchuang Date: Tue, 5 Dec 2023 21:41:47 +0800 Subject: [PATCH] add Signed-off-by: hwzhangchuang --- common/include/input_hub.cpp | 2 +- .../source/inputinject/src/distributed_input_node_manager.cpp | 4 ++-- services/source/sourcemanager/src/dinput_source_listener.cpp | 2 +- .../transport/src/distributed_input_source_transport.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 955078a..426b155 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -717,7 +717,7 @@ int32_t InputHub::GetEventKeys(struct libevdev *dev, InputDevice &identifier) DHLOGD("The device is not support eventKey: %d", eventKey); continue; } - DHLOGI("QueryInputDeviceInfo eventKey: %d", eventKey); + DHLOGD("QueryInputDeviceInfo eventKey: %d", eventKey); identifier.eventKeys.push_back(eventKey); } return DH_SUCCESS; diff --git a/services/source/inputinject/src/distributed_input_node_manager.cpp b/services/source/inputinject/src/distributed_input_node_manager.cpp index 2c59710..a429a98 100644 --- a/services/source/inputinject/src/distributed_input_node_manager.cpp +++ b/services/source/inputinject/src/distributed_input_node_manager.cpp @@ -471,7 +471,7 @@ void DistributedInputNodeManager::InjectEvent() if (ret != 0) { DHLOGE("InjectEvent setname failed."); } - DHLOGI("start"); + DHLOGD("start"); while (isInjectThreadRunning_.load()) { EventBatch events; { @@ -488,7 +488,7 @@ void DistributedInputNodeManager::InjectEvent() DHLOGD("process event, inject queue size: %zu", injectQueue_.size()); ProcessInjectEvent(events); } - DHLOGI("end"); + DHLOGD("end"); } void DistributedInputNodeManager::RegisterInjectEventCb(sptr callback) diff --git a/services/source/sourcemanager/src/dinput_source_listener.cpp b/services/source/sourcemanager/src/dinput_source_listener.cpp index 5aadc16..c35328d 100644 --- a/services/source/sourcemanager/src/dinput_source_listener.cpp +++ b/services/source/sourcemanager/src/dinput_source_listener.cpp @@ -346,7 +346,7 @@ void DInputSourceListener::OnReceivedEventRemoteInput(const std::string deviceId } size_t jsonSize = inputData.size(); - DHLOGI("OnReceivedEventRemoteInput called, deviceId: %s, json size:%d.", + DHLOGD("OnReceivedEventRemoteInput called, deviceId: %s, json size:%d.", GetAnonyString(deviceId).c_str(), jsonSize); std::vector mEventBuffer(jsonSize); diff --git a/services/source/transport/src/distributed_input_source_transport.cpp b/services/source/transport/src/distributed_input_source_transport.cpp index 165cc7b..e6c370e 100644 --- a/services/source/transport/src/distributed_input_source_transport.cpp +++ b/services/source/transport/src/distributed_input_source_transport.cpp @@ -1078,7 +1078,7 @@ void DistributedInputSourceTransport::NotifyResponseKeyStateBatch(int32_t sessio void DistributedInputSourceTransport::NotifyReceivedEventRemoteInput(int32_t sessionId, const nlohmann::json &recMsg) { - DHLOGI("OnBytesReceived cmdType is TRANS_SINK_MSG_BODY_DATA."); + DHLOGD("OnBytesReceived cmdType is TRANS_SINK_MSG_BODY_DATA."); if (!IsString(recMsg, DINPUT_SOFTBUS_KEY_INPUT_DATA)) { DHLOGE("The key is invaild."); return; @@ -1095,7 +1095,7 @@ void DistributedInputSourceTransport::NotifyReceivedEventRemoteInput(int32_t ses void DistributedInputSourceTransport::CalculateLatency(int32_t sessionId, const nlohmann::json &recMsg) { - DHLOGI("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY."); + DHLOGD("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY."); std::string deviceId = DistributedInputTransportBase::GetInstance().GetDevIdBySessionId(sessionId); if (deviceId.empty()) { DHLOGE("OnBytesReceived cmdType is TRANS_SINK_MSG_LATENCY, deviceId is error.");