# File lib/handler/endpoint_state_handler.rb, line 42
    def self.print_error(endpoint, endpoint_type)
      if !endpoint.remote_condition.nil?
      elsif self.local_endpoint?(endpoint) && endpoint.remote_closed?
        logging.error("#{endpoint_type} closed by peer")
      end
    end