import logging


def setUp():
    log = logging.getLogger('elasticsearch.trace')
    log.setLevel(logging.CRITICAL)

@@ -86,31 +86,38 @@
 log.
-setLevel(logging.CRITICAL
+addHandler(logging.NullHandler()
 )%0A

Use a better method for silencing 'no handlers found' error