import logging


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

import logging


def setUp():
    log = logging.getLogger('elasticsearch.trace')
    log.addHandler(logging.NullHandler())

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