       for {handler, delete?} <- handlers,
           delete? && :error_logger.delete_report_handler(handler) != {:error, :module_not_found},
           do: handler
+
     [] = Logger.Config.deleted_handlers(to_delete)
     :ok
   end

  def stop(config) do
    Logger.Config.deleted_handlers()
    |> add_handlers()
    Logger.Config.delete(config)
  end



  @doc false
  def start(_type, _args) do
    otp_reports? = Application.get_env(:logger, :handle_otp_reports)
    sasl_reports? = Application.get_env(:logger, :handle_sasl_reports)
    threshold = Application.get_env(:logger, :discard_threshold_for_error_logger)
    error_handler = {:error_logger, Logger.ErrorHandler, {otp_reports?, sasl_reports?, threshold}}

    children = [
