diff --git a/plugin/business/doh/src/logger.cpp b/plugin/business/doh/src/logger.cpp index 53ff201..d54edf8 100644 --- a/plugin/business/doh/src/logger.cpp +++ b/plugin/business/doh/src/logger.cpp @@ -341,7 +341,7 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c int ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_STREAM_TRACE_ID, (unsigned char *)opt_val, sizeof(opt_val), &opt_out_size); if (ret == 0) { - cJSON_AddNumberToObject(common_obj, "common_stream_trace_id", atoll(opt_val)); + cJSON_AddStringToObject(common_obj, "common_stream_trace_id", opt_val); } ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_COMMON_DIRECTION, (unsigned char *)&common_direction, sizeof(common_direction), &opt_out_size); if (ret==0) diff --git a/plugin/business/pangu-http/src/pangu_logger.cpp b/plugin/business/pangu-http/src/pangu_logger.cpp index 33301a4..4b502aa 100644 --- a/plugin/business/pangu-http/src/pangu_logger.cpp +++ b/plugin/business/pangu-http/src/pangu_logger.cpp @@ -160,7 +160,7 @@ int pangu_send_log(struct pangu_logger* handle, const struct pangu_log* log_msg) int ret=tfe_cmsg_get_value(cmsg, TFE_CMSG_STREAM_TRACE_ID, (unsigned char *) opt_val, sizeof(opt_val), &opt_out_size); if (ret==0) { - cJSON_AddNumberToObject(common_obj, "common_stream_trace_id", atoll(opt_val)); + cJSON_AddStringToObject(common_obj, "common_stream_trace_id", opt_val); } ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_COMMON_DIRECTION, (unsigned char *)&common_direction, sizeof(common_direction), &opt_out_size); if (ret==0)