Skip to content

Commit

Permalink
out_s3: fix logic in log_key warn message
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley authored and edsiper committed Feb 13, 2023
1 parent 0b0653a commit 7a20fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, const char
}

/* Throw error once per chunk if at least one log key was not found */
if (log_key_missing == FLB_TRUE) {
if (log_key_missing > 0) {
flb_plg_error(ctx->ins, "Could not find log_key '%s' in %d records",
ctx->log_key, log_key_missing);
}
Expand Down

0 comments on commit 7a20fea

Please sign in to comment.