summaryrefslogtreecommitdiff
path: root/src/tsg_send_log.cpp
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-05-30 15:24:03 +0800
committerliuxueli <[email protected]>2023-05-30 15:24:03 +0800
commitc34f27e2502071658757cd9848b588d5b9f3d273 (patch)
treeb1a443d153259fac97e8e61d77b6587797ed159a /src/tsg_send_log.cpp
parent11708368a03a4edec3dacc397a0665293f72bb61 (diff)
TSG-13421: 增加本地Debug日志,用于排查问题
Diffstat (limited to 'src/tsg_send_log.cpp')
-rw-r--r--src/tsg_send_log.cpp17
1 files 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; i<combined_num; i++)
@@ -838,8 +843,12 @@ int set_app_info(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_han
TLD_append(_handle, _instance->id2field[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)