def METHOD_NAME(records: List[LogRecord], msg: str):
    error_captured = False
    for record in records:
        if msg in record.message:
            error_captured = True
            break
    return error_captured