Skip to content

Commit 244d73d

Browse files
PettitWesleyedsiper
authored andcommitted
out_s3: fix logic in log_key warn message
Signed-off-by: Wesley Pettit <[email protected]>
1 parent 92ced68 commit 244d73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_s3/s3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, const char
19731973
}
19741974

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

0 commit comments

Comments
 (0)