diff options
| author | 童宗振 <[email protected]> | 2024-05-10 04:13:11 +0000 |
|---|---|---|
| committer | 童宗振 <[email protected]> | 2024-05-10 04:13:11 +0000 |
| commit | 11d3a14205a5adf7cdef8b99ad895bbc30864c98 (patch) | |
| tree | d0ec876150b7cb490d735af8e06d807c6013f25a | |
| parent | 93c60b86385ea8c1cb7c3f33a82978cee802bf65 (diff) | |
(TSG-21123)Messurement too long warning
| -rw-r--r-- | src/trace_output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/trace_output.c b/src/trace_output.c index 73bbc75..2c68f4c 100644 --- a/src/trace_output.c +++ b/src/trace_output.c @@ -567,6 +567,11 @@ static void dp_trace_decode_to_message_pack(marsio_buff_t * mr_mbuf, char ** dat mpack_write_cstr(&writer, "comments"); mpack_write_str(&writer, comment, comment_len); + if (comment_len > 1024) + { + dzlog_warn("The current comment is too long and may be abnormal data:%.*s", comment_len, comment); + } + mpack_finish_map(&writer); } |
