From c34f27e2502071658757cd9848b588d5b9f3d273 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Tue, 30 May 2023 15:24:03 +0800 Subject: [PATCH] =?UTF-8?q?TSG-13421:=20=E5=A2=9E=E5=8A=A0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0Debug=E6=97=A5=E5=BF=97=EF=BC=8C=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E6=8E=92=E6=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_send_log.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 9ab2cbf..6f3703e 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -809,9 +809,14 @@ int set_app_info(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_han { TLD_append(_handle, _instance->id2field[LOG_COMMON_APP_FULL_PATH].name, (void *)app_full_path, TLD_TYPE_STRING); TLD_append(_handle, _instance->id2field[LOG_COMMON_APP_LABEL].name, (void *)app_full_path, TLD_TYPE_STRING); + return 1; } - - return 1; + else + { + MESA_handle_runtime_log(_instance->logger, RLOG_LV_FATAL, "APP_FULL_PATH", "app_full_path is null, combined_num=0"); + } + + return 0; } for(int i=0; iid2field[LOG_COMMON_APP_LABEL].name, (void *)app_full_path, TLD_TYPE_STRING); } } - - return 1; + else + { + MESA_handle_runtime_log(_instance->logger, RLOG_LV_FATAL, "APP_FULL_PATH", "app_full_path is null, combined_num=%d", combined_num); + } + + return 1; } int set_app_id(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_handle, const struct streaminfo *a_stream)