Improve log error and add filter_or method