Skip to content

Commit

Permalink
日志优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyk00 committed Sep 12, 2024
1 parent da6926e commit b421984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ def plan_solver(self):
except Exception as e:
logger.exception(e)
# 如果下个 普通任务 >5 分钟则补全宿舍
logger.debug("tasks:" + str(self.tasks))
logger.debug("||".join([str(t) for t in self.tasks]))
if self.find_next_task(datetime.now() + timedelta(seconds=15)):
logger.info("有其他任务,跳过宿舍纠错")
return
Expand Down
2 changes: 2 additions & 0 deletions arknights_mower/utils/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def available_free(self, free_type="high"):
break
else:
idx += 1
logger.debug(f"高优空位{ret}个")
else:
idx = self.config.max_resting_count
for i in range(idx, len(self.dorm)):
Expand All @@ -635,6 +636,7 @@ def available_free(self, free_type="high"):
logger.info(f"检测到房间休息完毕,释放{dorm.name}宿舍位")
freeName.append(dorm.name)
ret += 1
logger.debug(f"低优空位{ret}个")
if len(freeName) > 0:
for name in freeName:
if name in agent_list:
Expand Down

0 comments on commit b421984

Please sign in to comment.