Skip to content

Commit

Permalink
优化日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed May 16, 2024
1 parent f11e194 commit f5932a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xiaomusic/xiaomusic.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@ async def run_forever(self):
StartHTTPServer(self.port, self.music_path, self)
task = asyncio.create_task(self.poll_latest_ask())
assert task is not None # to keep the reference to task, do not remove this
filtered_keywords = [keyword for keyword in KEY_MATCH_ORDER if "#" not in keyword]
joined_keywords = "/".join(filtered_keywords)
self.log.info(
f"Running xiaomusic now, 用`{'/'.join(KEY_WORD_DICT.keys())}`开头来控制"
f"Running xiaomusic now, 用`{joined_keywords}`开头来控制"
)

while True:
Expand Down

0 comments on commit f5932a3

Please sign in to comment.