Skip to content

Commit

Permalink
chore: 调整一些日志等级
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 31, 2023
1 parent 33be9e0 commit 33538c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/MaaFramework/Instance/InstanceStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion source/MaaFramework/Vision/VisionBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion test/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33538c1

Please sign in to comment.