

def init_logging():
    log = logging.getLogger('devil')
    if (log.level == logging.NOTSET):
        log.setLevel(logging.WARN)
        handler = logging.StreamHandler(sys.stdout)
        handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(name)s %(message)s'))
        handler.addHandler(handler)

dataset/ETHPy150Open wuher/devil/devil/__init__.py init_logging/VarMisuse@63/94 `log`->`handler`