Skip to content

Commit

Permalink
PRINT size
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Jul 16, 2023
1 parent 602bf1a commit f81b7c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/flb_log_event_encoder_primitives.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,22 +572,27 @@ int flb_log_event_encoder_append_values_unsafe(
result == FLB_EVENT_ENCODER_SUCCESS ;
processed_values++) {
value_type = va_arg(arguments, int);

flb_error("value_type=%d", value_type);
if (value_type == FLB_LOG_EVENT_APPEND_TERMINATOR_VALUE_TYPE) {
break;
}
else if (value_type == FLB_LOG_EVENT_STRING_LENGTH_VALUE_TYPE) {
size_t size = va_arg(arguments, size_t);
flb_error("length_value_type: size=%zu", size);
result = flb_log_event_encoder_append_string_length(context,
target_field,
va_arg(arguments, size_t));
size);
}
else if (value_type == FLB_LOG_EVENT_STRING_BODY_VALUE_TYPE) {
size_t size;
buffer_address = va_arg(arguments, char *);
size = va_arg(arguments, size_t);
flb_error("sizeof(size)=%zu size=%zu", sizeof(size), size);

result = flb_log_event_encoder_append_string_body(context,
target_field,
buffer_address,
va_arg(arguments, size_t));
size);
}
else if (value_type == FLB_LOG_EVENT_BINARY_LENGTH_VALUE_TYPE) {
result = flb_log_event_encoder_append_binary_length(context,
Expand Down

0 comments on commit f81b7c9

Please sign in to comment.