Log value in case of regex validation errors.