From f7ef61a12832f8348742d6e132ac87b0541414d1 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Thu, 31 Mar 2016 14:07:48 +0200 Subject: [PATCH] connection: add a debug option to debug boto calls Basically setting debug level via conf file and setting a stream logger prefixed with 'boto' for more debugging Signed-off-by: Abhishek Lekshmanan --- s3tests/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/s3tests/common.py b/s3tests/common.py index b096cdc..cef6b60 100644 --- a/s3tests/common.py +++ b/s3tests/common.py @@ -108,6 +108,9 @@ def connect(conf): raise RuntimeError( 'calling_format unknown: %r' % raw_calling_format ) + if conf.has_key('debug'): + kwargs['debug']=conf['debug'] + boto.set_stream_logger('boto') # TODO test vhost calling format conn = boto.s3.connection.S3Connection(**kwargs) return conn