修改日志等级 3358/3 3358/head 3363/target/1
authorhcj <1224667075@qq.com>
Tue, 21 Apr 2026 11:34:43 +0000 (19:34 +0800)
committerhcj <1224667075@qq.com>
Tue, 21 Apr 2026 11:34:43 +0000 (19:34 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c

index 1cce623..8854804 100644 (file)
@@ -61,7 +61,7 @@ typedef enum {
 } ln_ws_log_level_t;
 
 // 当前日志等级(可通过配置修改)
-static ln_ws_log_level_t g_log_level =  LN_WS_LOG_DEBUG;
+static ln_ws_log_level_t g_log_level =  LN_WS_LOG_WARN;
 
 void ln_ws_set_log_level(uint8_t level)
 {
@@ -1202,11 +1202,9 @@ static void ai_binary_message_handler(const uint8_t *raw_data, uint32_t timestam
     const size_t CHUNK_SIZE = 1024*2; // 1K 分块大小
     
     if (data_len <= CHUNK_SIZE || (g_audio_playback_active==false && data_len<1024*4)) {
-        // 数据小于等于1K,直接发送
         LN_WS_DEBUG("Sending data directly (size: %d bytes)\n", data_len);
         AI_SendAudioDataToQueue(raw_data, data_len);
     } else {
-        // 数据大于1K,分块发送
         LN_WS_DEBUG("Data size %d bytes > %zu bytes, splitting into chunks\n", data_len, CHUNK_SIZE);
         
         size_t remaining = data_len;
@@ -1261,11 +1259,9 @@ static void ln_ws_incomplete_callback(const char *raw_data, size_t length, bool
     {
          const size_t CHUNK_SIZE = 1024; // 1K 分块大小
         if (length <= CHUNK_SIZE) {
-        // 数据小于等于1K,直接发送
         LN_WS_DEBUG("Sending data directly (size: %d bytes)\n", length);
         AI_SendAudioDataToQueue((uint8_t *)raw_data, length);
         } else {
-            // 数据大于1K,分块发送
             LN_WS_DEBUG("Data size %d bytes > %zu bytes, splitting into chunks\n", length, CHUNK_SIZE);
             
             size_t remaining = length;