Debug logging won't turn off in 2.5.1 #864

Open
GeoffreyPlitt opened this Issue Jul 12, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Boto's dynamodb library is dumping a lot of debug logs to console output.

I did:
import logging
logging.getLogger('boto').setLevel(logging.CRITICAL)

but it didn't fix it. Please advise, thanks.

Owner

garnaat commented Jul 13, 2012

Hmm. I'm unable to reproduce this in my environment. Does the debug output get printed for all requests? Can you provide an example of the output? Thanks

I'm only using DynamoDB at the moment, but it may be happening with other packages. Here's a sample:
header: Date: Thu, 26 Jul 2012 04:22:08 GMT
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 109\r\nX-Amz-Date: Thu, 26 Jul 2012 04:22:09 GMT\r\nX-Amz-Target: DynamoDB_20111205.GetItem\r\nUser-Agent: Boto/2.5.1 (darwin)\r\nHost: dynamodb.us-east-1.amazonaws.com\r\nX-Amz-Security-Token: AQoDYXdzEIb//////////wEawAG8Pv9n7Qwfcku2KUK2qiTjVMEe9bNm2Qr1/0yNfIfBt8xZfmmSkgCh7GKOEzEylZ2CbOx41TzaiskITQjGKPsS27FGGp3W0aKBmz3WE3/PI7uJLB304nIqWBqjxcpevWR5nBA1ls2MONSut049w1wBWbSHbQgck+z0AwhJ8axlDo7ys42OwQ7th3ROL0W2h5mkW5lkVWALUqGb2J2gh4aYZUftzJL/31jKuP9x3/0XkLaic7HZkJw1aGRMaKlVC8Ug7ovDgAU=\r\nX-Amzn-Authorization: AWS3 AWSAccessKeyId=ASIAIHZQAYTEH4FT47QQ,Algorithm=HmacSHA256,SignedHeaders=Host;X-Amz-Security-Token;X-Amz-Date;X-Amz-Target,Signature=5IvNDnjnMoeNXQaw7IY9X6ff7A5ssyAMwIjGwnmGU90=\r\nContent-Type: application/x-amz-json-1.0\r\n\r\n{"TableName": "production_content", "Key": {"HashKeyElement": {"S": "90c8f3dc-3458-456e-a069-8843d63496df"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: x-amzn-RequestId: 0QQTEKSR6VA64O3SVOU8MKHICVVV4KQNSO5AEMVJF66Q9ASUAAJG
header: Content-Type: application/x-amz-json-1.0
header: Content-Length: 777
header: Date: Thu, 26 Jul 2012 04:22:08 GMT
send: 'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nContent-Length: 108\r\nX-Amz-Date: Thu, 26 Jul 2012 04:22:09 GMT\r\nX-Amz-Target: DynamoDB_20111205.GetItem\r\nUser-Agent: Boto/2.5.1 (darwin)\r\nHost: dynamodb.us-east-1.amazonaws.com\r\nX-Amz-Security-Token: AQoDYXdzEIb//////////wEawAFFbrqjJnbwr1L0PfQpeIMafxZpocpVA5dJmkLuwy4uVPHLA5hqShYuRhY5MsFcr6wNK/EVlmmiMAoJ+pgpDYwQquKCyuFaxZVvOHA5VksOf6Y1ohEpd7plGTvCMkD8+Y8YIbSQGcCe3Abt0e4yrZmSOi4EKzgWDFYtMzGvOC9GyoN98IGo3J6rGEDfNLz+tVZ5gl04CcDlhBe1l+UFVgwmpYOLH58zD09dIzf4rSl4jNiKKMbrvfkbxlgQEHnUxrcg7ovDgAU=\r\nX-Amzn-Authorization: AWS3 AWSAccessKeyId=ASIAJYCKLIF5GIVLSNNQ,Algorithm=HmacSHA256,SignedHeaders=Host;X-Amz-Security-Token;X-Amz-Date;X-Amz-Target,Signature=VCE7ZUstNWBxCNQV0PjCf/RQr18E8k3NGKFDMmdBANY=\r\nContent-Type: application/x-amz-json-1.0\r\n\r\n{"TableName": "production_artist", "Key": {"HashKeyElement": {"S": "cd709dc8-b6fd-47a6-97ee-92e4280d6e14"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: x-amzn-RequestId: 94G4T96IB08ORLDHNNOKBVB763VV4KQNSO5AEMVJF66Q9ASUAAJG
header: Content-Type: application/x-amz-json-1.0
header: Content-Length: 330
header: Date: Thu, 26 Jul 2012 04:22:09 GMT
Exception KeyError: KeyError(4353600104,) in <module 'threading' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.pyc'> ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment