From 16cfab0ae5f74ef4833bbe8e53ede0921c7222f5 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期三, 05 七月 2023 17:03:27 +0800
Subject: [PATCH] update funasr-wss-client.cpp

---
 funasr/runtime/websocket/funasr-wss-client.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/websocket/funasr-wss-client.cpp b/funasr/runtime/websocket/funasr-wss-client.cpp
index eb94d14..b6d69f2 100644
--- a/funasr/runtime/websocket/funasr-wss-client.cpp
+++ b/funasr/runtime/websocket/funasr-wss-client.cpp
@@ -20,6 +20,7 @@
 #include <websocketpp/config/asio_client.hpp>
 #include <fstream>
 #include <atomic>
+#include <thread>
 #include <glog/logging.h>
 
 #include "audio.h"
@@ -106,7 +107,7 @@
         switch (msg->get_opcode()) {
             case websocketpp::frame::opcode::text:
 				total_num=total_num+1;
-                LOG(INFO)<<total_num<<",on_message = " << payload;
+                LOG(INFO)<< "Thread: " << this_thread::get_id() <<",on_message = " << payload;
 				if((total_num+1)==wav_index)
 				{
 					websocketpp::lib::error_code ec;
@@ -375,4 +376,4 @@
     for (auto& t : client_threads) {
         t.join();
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1