Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress some INFO and WARNING log #41

Open
tienleq opened this issue Nov 23, 2020 · 2 comments
Open

Suppress some INFO and WARNING log #41

tienleq opened this issue Nov 23, 2020 · 2 comments

Comments

@tienleq
Copy link

tienleq commented Nov 23, 2020

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

@tienleq tienleq changed the title Suppress INFO log Suppress some INFO and WARNING log Nov 23, 2020
@kjarnet
Copy link

kjarnet commented Jun 7, 2021

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
Copy link

Gupastha commented Jan 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants