module RSolr::Error::URICleanup

def clean_uri(uri)

Removes username and password from URI object.
def clean_uri(uri)
  uri = uri.dup
  uri.password = "REDACTED" if uri.password
  uri.user = "REDACTED" if uri.user
  uri
end