import logging


def is_matching_filename(filename, suffix_list):
    """
    Return True/False if filename's suffix is in suffix list.
    (Returns False if the file doesn't seem to have a suffix)
    Assumption: members of suffix_list are lower case
    """
    try:
        _, suffix = filename.rsplit(".", 1)
    except ValueError:
        logging.warning("Unable to obtain suffix for '%s'" % (filename))
        return False
    return suffix.lower() in suffix_list