Module: RSolr::Error::URICleanup

Included in:
ConnectionRefused, SolrContext
Defined in:
lib/rsolr/error.rb

Instance Method Summary collapse

Instance Method Details

#clean_uri(uri) ⇒ Object

Removes username and password from URI object.



7
8
9
10
11
12
# 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