awslabs / dynamodb-streams-kinesis-adapter

The Amazon DynamoDB Streams Adapter implements the Amazon Kinesis interface so that your application can use KCL to consume and process data from a DynamoDB stream.
Apache License 2.0
99 stars 37 forks source link

Suppress some INFO and WARNING log #41

Open tienleq opened 3 years ago

tienleq commented 3 years ago

Hi,

There are a few INFO log entries below, and they are repeatedly printed:

INFO: getShardList: begin
INFO: getShardList: done

INFO: syncShardLeases: begin
INFO: syncShardLeases: done

INFO: cleanupLeasesOfFinishedShards: begin
INFO: cleanupLeasesOfFinishedShards: done

INFO: cleanupGarbageLeases: begin
INFO: cleanupGarbageLeases: done

INFO: determineNewLeasesToCreate: begin
INFO: determineNewLeasesToCreate: done

I tried to suppress them in my logback settings but it doesn't seem to work

<logger name="com.amazonaws.services.dynamodbv2.streamsadapter" level="WARN" />

Any suggestion how to suppress them?

One more thing is that there are a couple of WARNING log entries during startup, and I think they sound like INFO level in stead of WARNING:

WARNING: Received configuration for region as eu-west-1.

Regards, Tien

kjarnet commented 3 years ago

Any update on this? Why do StreamsWorkerFactory.createClient log a warning no matter what arguments you pass it? https://github.com/awslabs/dynamodb-streams-kinesis-adapter/blob/master/src/main/java/com/amazonaws/services/dynamodbv2/streamsadapter/StreamsWorkerFactory.java#L278-L288

Gupastha commented 1 year ago

Similar issue here. Need a way to stop logging unwanted info logs