Commit b520263d by ‘chizw’

[+]日志优化

1 parent b837c1d8
......@@ -70,13 +70,13 @@ class model_output():
def handle_process(message: str):
try:
log.info(
f"handle_process process name:{multiprocessing.current_process()},thread name:{threading.current_thread().name},"
f"handle_process_start process_name:{multiprocessing.current_process()},thread name:{threading.current_thread().name},"
f"Received task_id: {message}")
# 处理逻辑
start_time = time.time()
task_id = json.loads(message)["task_id"]
deal_worker(task_id)
log.info(f"funasr_handle_process task_id:{task_id} 耗时:" + str(time.time() - start_time))
log.info(f"handle_process_end task_id:{task_id} 耗时:" + str(time.time() - start_time))
except Exception as e:
log.error("funasr handle_process Exception: " + str(traceback.format_exc()))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!