def compare_log_to_resp(log, resp):
    """ Search the log list for the responses in the response list

    Search through the log list for the lines in the response list. The
    response list may contain substrings found in the log list lines. The
    response list lines must be found in the log list in the order they
    are specified in the response list (the log list may have extra lines
    which are ignored).

    Returns None if all the strings in the response list were found in the
    log list. Otherwise, returns the first missing response line.
    """
    response_line_no = 0
    response_line = resp[response_line_no].rstrip()

    for log_line in log:
        log_line = log_line.rstrip()
        if response_line in log_line:
            # Found a match, step to the next non-blank line in the response
            # list
            while True:
                response_line_no += 1
                if response_line_no >= len(resp):
                    # We ran through all of our respones lines, success!
                    return None
                else:
                    response_line = resp[response_line_no].rstrip()
                    if len(response_line) > 0:
                        break
    #print("Log missing '{0:s}'".format(response_line))
    return response_line