Add the omit empty annotation to log params.