소스 검색

fix: 统一通过log输出日志

许家凯 1 년 전
부모
커밋
136eb0c51b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      JobMain.py

+ 1 - 1
JobMain.py

@@ -48,7 +48,7 @@ async def on_message_received(producer, msg: IncomingMessage):
 
 
 async def main_for_rabbitmq():
-    log.info("start job. Listening queue :", source_topic, "send topic:", target_topic, "max concurrency:",
+    log.info("start job. Listening queue : %s , send topic: %s , max concurrency: %s", source_topic, target_topic,
              max_concurrency)
 
     pool = AsyncPool(max_concurrency)