lib/qismo/client.rb in qismo-0.18.1 vs lib/qismo/client.rb in qismo-0.18.2

- old
+ new

@@ -65,11 +65,11 @@ # Your account's admin email. Can be checked in Qiscus Omnichannel dashboard def initialize( app_id: DEFAULT_APP_ID, secret_key: DEFAULT_SECRET_KEY, url: DEFAULT_URL, - logger: Logger.new($stdout), + logger: nil, instrumentation: nil, timeout: 5, proxy: nil, admin_email: nil ) @@ -169,12 +169,12 @@ # Http connection config # # @return [HTTP::Chainable] def connection http = HTTP - http = http.use(logging: @logger) if @logger.present? + http = http.use(logging: {logger: @logger}) if @logger.present? http = http.use(instrumentation: @instrumentation) if @instrumentation.present? - http = http.via(*@proxy) + http = http.via(*@proxy) if @proxy.present? if @timeout.present? http = if @timeout.is_a?(Hash) http.timeout(**@timeout) else