HTTPI error in attempt of user of HTTPi adapter using Savon SOON library

I am using Savon to write a Ruby interface for a SOAP service. It seems to work, but I get a couple of DEBUG messages appearing on the command line

D, [2011-02-15T16:33:32.664620 #4140] DEBUG -- : HTTPI tried to use the httpclient adapter, but was unable to find the library in the LOAD_PATH. Falling back using the net_http adapter now.

D, [2011-02-15T16: 33: 32.820863 # 4140] DEBUG -: HTTPI executes HTTP POST using the net_http adapter

I am not sure why these messages appear or what they even mean.

Any ideas?

+6
soap ruby savon
source share
2 answers

Savon uses HTTPI to execute HTTP requests. HTTPI acts as an adapter for various Ruby HTTP client libraries (currently it supports: HTTPClient, Curb, and Net / HTTP). Prior to v0.9.0, the default HTTPI was to use an HTTPClient, log a warning when the library could not be loaded and return to using NetHTTP.

Starting with v0.9.0, HTTPI now tries to load HTTPClient, then Curb, and finally NetHTTP, without triggering a "warning".

As you mentioned, it still writes the adapter used for each request. You can either increase the default level of logs in your application, for example: info (HTTPI logs at: debug) or tell HTTPI so you don’t log anything through:

 HTTPI.log = false 

Ps. Note that disabling logging for v0.8.0 is an error. This has been fixed with v0.9.0.

+13
source

Aaaand, after 30 seconds, I realized this for myself. Just install the HTTPClient adapter.

Although I still get the following DEBUG message

D, [2011-02-15T16:33:32.820863 #4140] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter

Any ideas on how to suppress it?

Thanks!

0
source

All Articles