mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
chore.去掉一些多余的日志打印
This commit is contained in:
@@ -370,7 +370,9 @@ bool asst::InfrastProductionTask::optimal_calc()
|
||||
if (!opt.possible_hashs.empty()) {
|
||||
for (const auto& [key, hash] : opt.possible_hashs) {
|
||||
int dist = utils::hamming(find_iter->name_hash, hash);
|
||||
#ifdef LOG_TRACE
|
||||
Log.trace("optimal_calc | name hash dist", dist, hash, find_iter->name_hash);
|
||||
#endif
|
||||
if (dist < m_name_hash_thres) {
|
||||
hash_matched = true;
|
||||
break;
|
||||
@@ -496,7 +498,9 @@ bool asst::InfrastProductionTask::opers_choose()
|
||||
// 既要技能相同,也要hash相同,双重校验
|
||||
for (const auto& [_, hash] : opt_iter->possible_hashs) {
|
||||
int dist = utils::hamming(lhs.name_hash, hash);
|
||||
#ifdef LOG_TRACE
|
||||
Log.trace("opers_choose | name hash dist", dist);
|
||||
#endif
|
||||
if (dist < m_name_hash_thres) {
|
||||
return true;
|
||||
}
|
||||
@@ -525,7 +529,9 @@ bool asst::InfrastProductionTask::opers_choose()
|
||||
m_all_available_opers.cbegin(), m_all_available_opers.cend(),
|
||||
[&](const infrast::Oper& lhs) -> bool {
|
||||
int dist = utils::hamming(lhs.face_hash, find_iter->face_hash);
|
||||
#ifdef LOG_TRACE
|
||||
Log.trace("opers_choose | face hash dist", dist);
|
||||
#endif
|
||||
if (dist < m_face_hash_thres) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user