Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1349

Show
Ignore:
Timestamp:
12/02/04 22:01:20 (4 years ago)
Author:
nahi
Message:

* added a debug log of SOAP request/response

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/rpc/soaplet.rb

    r1334 r1349  
    115115 
    116116  def do_POST(req, res) 
     117    @config[:Logger].debug { "SOAP request: " + req.body } 
    117118    soapaction = parse_soapaction(req.meta_vars['HTTP_SOAPACTION']) 
    118119    router = lookup_router(soapaction) 
     
    144145    if res.body.is_a?(IO) 
    145146      res.chunked = true 
     147      @config[:Logger].debug { "SOAP response: (chunked response not logged)" } 
     148    else 
     149      @config[:Logger].debug { "SOAP response: " + res.body } 
    146150    end 
    147151  end