Dav*_*acs 6 ruby soap savon httpi
我正在使用Savon为SOAP服务编写Ruby接口.它似乎正在工作,但我在命令行上出现了几个DEBUG消息
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
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
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
我不确定为什么这些消息会出现,或者甚至是什么意思.
有任何想法吗?
rub*_*iii 13
Savon使用HTTPI来执行HTTP请求.HTTPI充当各种Ruby HTTP客户端库的适配器(它目前支持:HTTPClient,Curb和Net/HTTP).在v0.9.0之前,HTTPI的默认设置是使用HTTPClient,在无法加载库时记录警告并回退使用NetHTTP.
从v0.9.0开始,HTTPI现在尝试加载HTTPClient,然后是Curb,最后是NetHTTP而不记录"回退警告".
就像你提到的那样,它仍然记录了用于每个请求的适配器.您可以将应用程序的默认日志级别提升为:info(HTTPI logs at:debug)或告诉HTTPI不要通过以下方式记录任何内容:
HTTPI.log = false
Run Code Online (Sandbox Code Playgroud)
PS.请注意,禁用v0.8.0的日志记录是错误的.这是用v0.9.0修复的.
| 归档时间: |
|
| 查看次数: |
3891 次 |
| 最近记录: |