def ids_to_s(ids)
      if ids.is_a?(Array)
        s = ids.each { |i| id_to_s(i) }.join(', ')
        s.size > 1000 ? "[#{s[0, 1000]}...]" : "[#{s}]"
      else
        id_to_s(ids)
      end
    end
def ids_to_s(ids)
      if ids.is_a?(Array)
        s = ids.each { |i| id_to_s(i) }.join(', ')
        s.size > 1000 ? "[#{s[0, 1000]}...]" : "[#{s}]"
      else
        id_to_s(ids)
      end
    end
Generate log friendly serialized identity for one or more ids
 Limit to 1000 bytes

 === Parameters
 ids(Array|String):: Serialized identity or array of serialized identities

 === Return
 (String):: Log friendly serialized identity