amazon-ssm-agent icon indicating copy to clipboard operation
amazon-ssm-agent copied to clipboard

How to disable debug prints?

Open shayts7 opened this issue 10 years ago • 4 comments

Hi,

I'm getting a very large debug print every ~20 sec. When I look in the code I reach this function, and according to the code I can only guess that the aws.LogDebug is turned on in my env: https://github.com/aws/amazon-ssm-agent/blob/11049f2f75e0387f3fa432123c4eed52eaec812e/vendor/src/github.com/aws/aws-sdk-go/aws/client/client.go#L76

How can I find what is the Log Level in my env? and how can I change it?

I'm running the agent in a docker container using this command: /bin/bash -a -c '/usr/bin/docker run \ --name ssm_agent \ -v /var/run/dbus:/var/run/dbus \ -v /run/systemd:/run/systemd \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $(which docker):/usr/bin/docker \ -v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 \ rlister/amazon-ssm-agent:latest

Thanks, Shay

shayts7 avatar Sep 05 '16 11:09 shayts7

Hi @shayts7, The team is aware of the issue, we are working on the fixes.

shihuazhang avatar Sep 06 '16 22:09 shihuazhang

@shihuazhang, thanks for the update

shayts7 avatar Sep 07 '16 07:09 shayts7

@shihuazhang - Any estimations for when the fix will be ready?

Thanks, Shay

shayts7 avatar Oct 09 '16 08:10 shayts7

@shayts7 The issue is addressed in the latest build.

Free feel to reopen this if you have more question

shihuazhang avatar Jan 19 '17 19:01 shihuazhang