def read_file(filename):
    """Read a file."""
    logging.debug(_('Reading file: %s'), filename)
    try:
        with open(filename) as readable:
            return readable.read()
    except OSError:
        logging.error(_('Error reading file: %s'), filename)
        return ''
Read a file.