Skip to content

Commit bda73d8

Browse files
sjoerdsminkedsiper
authored andcommitted
out_cloudwatch_logs: fix disabling of auto_create_group config option
Fix for #8949 Signed-off-by: Sjoerd Smink <[email protected]>
1 parent 945d333 commit bda73d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/out_cloudwatch_logs/cloudwatch_logs.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ static struct flb_aws_header content_type_header = {
5353
static int validate_log_group_class(struct flb_cloudwatch *ctx)
5454
{
5555
if (ctx->create_group == FLB_FALSE) {
56-
flb_plg_error(ctx->ins, "Configuring log_group_class requires `auto_create_group On`.");
57-
return -1;
56+
return 0;
5857
}
5958

6059
if (ctx->log_group_class == NULL || strlen(ctx->log_group_class) == 0) {

0 commit comments

Comments
 (0)