From 997725ed426d223734347fff94b846c0b01f91cd Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 18 Oct 2023 16:15:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BB=99ControlUint=E5=8A=A0=E7=82=B9?= =?UTF-8?q?log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/MaaControlUnit/ControlUnitMgr.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/MaaControlUnit/ControlUnitMgr.cpp b/source/MaaControlUnit/ControlUnitMgr.cpp index bcc478393..af6a18341 100644 --- a/source/MaaControlUnit/ControlUnitMgr.cpp +++ b/source/MaaControlUnit/ControlUnitMgr.cpp @@ -116,7 +116,7 @@ std::shared_ptr create_adb_controller_unit(MaaStringView adb_pat MaaAdbControllerType type, MaaStringView agent_path, MaaStringView config) { - LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(config); + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(agent_path) << VAR(config); std::shared_ptr touch_unit = nullptr; std::shared_ptr key_unit = nullptr; @@ -267,6 +267,8 @@ std::shared_ptr create_adb_controller_unit(MaaStringView adb_pat std::shared_ptr create_adb_connection(MaaStringView adb_path, MaaStringView adb_serial, MaaAdbControllerType type, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(config); + std::ignore = type; auto json_opt = json::parse(std::string_view(config)); @@ -300,6 +302,8 @@ std::shared_ptr create_adb_connection(MaaStringView adb_path, Maa std::shared_ptr create_adb_device_info(MaaStringView adb_path, MaaStringView adb_serial, MaaAdbControllerType type, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(config); + std::ignore = type; auto json_opt = json::parse(std::string_view(config)); @@ -333,6 +337,8 @@ std::shared_ptr create_adb_device_info(MaaStringView adb_path, Ma std::shared_ptr create_adb_activity(MaaStringView adb_path, MaaStringView adb_serial, MaaAdbControllerType type, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(config); + std::ignore = type; auto json_opt = json::parse(std::string_view(config)); @@ -367,6 +373,8 @@ std::shared_ptr create_adb_touch_input(MaaStringView adb_path, Ma MaaAdbControllerType type, MaaStringView agent_path, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(agent_path) << VAR(config); + auto json_opt = json::parse(std::string_view(config)); if (!json_opt) { LogError << "Parse config failed, invalid config:" << config; @@ -428,6 +436,8 @@ std::shared_ptr create_adb_key_input(MaaStringView adb_path, MaaStr MaaAdbControllerType type, MaaStringView agent_path, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(agent_path) << VAR(config); + auto json_opt = json::parse(std::string_view(config)); if (!json_opt) { LogError << "Parse config failed, invalid config:" << config; @@ -479,6 +489,8 @@ std::shared_ptr create_adb_screencap(MaaStringView adb_path, MaaSt MaaAdbControllerType type, MaaStringView agent_path, MaaStringView config) { + LogFunc << VAR(adb_path) << VAR(adb_serial) << VAR(type) << VAR(agent_path) << VAR(config); + auto json_opt = json::parse(std::string_view(config)); if (!json_opt) { LogError << "Parse config failed, invalid config:" << config;