lib/boris/connectors.rb in boris-1.0.2 vs lib/boris/connectors.rb in boris-1.0.3

- old
+ new

@@ -10,20 +10,21 @@ attr_reader :connected attr_reader :host attr_reader :options attr_reader :reconnectable - attr_reader :failure_message + attr_reader :failure_messages attr_reader :user def initialize(host, cred={}) @logger = Boris.logger @host = host @user = cred[:user] @password = cred[:password] @connected = false + @failure_messages = [] @reconnectable = true debug 'creating connection object' end # Convience method for retrieveing the connection status for this Connector. @@ -59,9 +60,9 @@ raise ArgumentError, "specified limit must be greater than 1 (or nil for no limit) (#{limit.inspect})" end unless limit.nil? amount = limit == 1 ? 'single value' : 'multiple values' - debug "issuing request for #{amount} (#{request})" + debug "issuing request for #{amount} (#{request.strip})" end end end