

def prepare_submodule_logger(submodule_name, file_path=None):
    logger = logging.getLogger(submodule_name)
    if (file_path is not None):
        handler = logging.FileHandler(file_path)
    else:
        handler = logging.StreamHandler(sys.stdout)
    set_logger(logger, handler)
    return handler

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/utils/logs.py prepare_submodule_logger/VarMisuse@67/87 `logger`->`handler`