Merge "Quiten boto logging in func tests"
This commit is contained in:
commit
94dc4cad09
@ -45,11 +45,12 @@ class S3ApiBase(unittest.TestCase):
|
|||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def quiet_boto_logging(self):
|
def quiet_boto_logging(self):
|
||||||
|
original_level = logging.getLogger('boto').getEffectiveLevel()
|
||||||
try:
|
try:
|
||||||
logging.getLogger('boto').setLevel(logging.INFO)
|
logging.getLogger('boto').setLevel(logging.INFO)
|
||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
logging.getLogger('boto').setLevel(logging.DEBUG)
|
logging.getLogger('boto').setLevel(original_level)
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
if not tf.config.get('s3_access_key'):
|
if not tf.config.get('s3_access_key'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user