module RSolr::Error::URICleanup

Public Instance Methods

clean_uri(uri) click to toggle source

Removes username and password from URI object.

# File lib/rsolr/error.rb, line 7
def clean_uri(uri)
  uri = uri.dup
  uri.password = "REDACTED" if uri.password
  uri.user = "REDACTED" if uri.user
  uri
end