diff --git a/source/MaaFramework/Instance/InstanceStatus.cpp b/source/MaaFramework/Instance/InstanceStatus.cpp index f7014a6e5..a58f5989d 100644 --- a/source/MaaFramework/Instance/InstanceStatus.cpp +++ b/source/MaaFramework/Instance/InstanceStatus.cpp @@ -21,7 +21,7 @@ void InstanceStatus::set_rec_box(std::string task, cv::Rect rec) void InstanceStatus::clear_rec_box() { - LogInfo; + LogDebug; rec_box_map_.clear(); } @@ -43,7 +43,7 @@ void InstanceStatus::set_rec_detail(std::string task, json::value detail) void InstanceStatus::clear_rec_detail() { - LogInfo; + LogDebug; rec_detail_map_.clear(); } @@ -65,7 +65,7 @@ void InstanceStatus::set_task_result(std::string task, json::value result) void InstanceStatus::clear_task_result() { - LogInfo; + LogDebug; task_result_map_.clear(); } @@ -86,7 +86,7 @@ void InstanceStatus::increase_run_times(const std::string& task, int times) void InstanceStatus::clear_run_times() { - LogInfo; + LogDebug; run_times_map_.clear(); } diff --git a/source/MaaFramework/Vision/VisionBase.cpp b/source/MaaFramework/Vision/VisionBase.cpp index e6b1d7751..7ebb4a46e 100644 --- a/source/MaaFramework/Vision/VisionBase.cpp +++ b/source/MaaFramework/Vision/VisionBase.cpp @@ -47,7 +47,7 @@ void VisionBase::save_image(const cv::Mat& image) const std::string filename = MAA_FMT::format("{}_{}.png", name_, now_filestem()); auto filepath = GlobalOptionMgr::get_instance().log_dir() / "Vision" / filename; MAA_NS::imwrite(filepath, image); - LogInfo << "save image to" << filepath; + LogDebug << "save image to" << filepath; } void VisionBase::init_debug_draw() diff --git a/test/source/main.cpp b/test/source/main.cpp index e4d6e3c12..f823553c0 100644 --- a/test/source/main.cpp +++ b/test/source/main.cpp @@ -16,7 +16,7 @@ int main([[maybe_unused]] int argc, char** argv) MaaSetGlobalOption(MaaGlobalOption_LogDir, (void*)logging_dir.c_str(), logging_dir.size()); bool on = true; MaaSetGlobalOption(MaaGlobalOption_DebugMode, &on, sizeof(on)); - MaaLoggingLevel lv = MaaLoggingLevel_All; + MaaLoggingLevel lv = MaaLoggingLevel_Info; MaaSetGlobalOption(MaaGlobalOption_StdoutLevel, &lv, sizeof(lv)); bool ret = pipeline_smoking(testset_dir);