Refine message dropping strategy for error_logger handler.