def set_up_logging():
    ' Set some logging parameter '
    if importlib.util.find_spec('requests'):
        logging.getLogger('requests').setLevel(logging.WARNING)
        logging.getLogger('urllib3').setLevel(logging.WARNING)
    logging.basicConfig(format='[%(levelname)s] %(message)s', level=logging.DEBUG)
Set some logging parameter
def set_up_logging():
    '  '
    if importlib.util.find_spec('requests'):
        logging.getLogger('requests').setLevel(logging.WARNING)
        logging.getLogger('urllib3').setLevel(logging.WARNING)
    logging.basicConfig(format='[%(levelname)s] %(message)s', level=logging.DEBUG)