Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 798

Show
Ignore:
Timestamp:
02/25/05 02:24:36 (4 years ago)
Author:
bitserf
Message:

handle elapsed times that are nil in #log_response (happens when API method
throws an exception). this fixes exception marshaling so that remote callers get
a proper stack trace.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb

    r708 r798  
    9696          def log_response(response, elapsed) 
    9797            unless logger.nil? || response.nil? 
    98               logger.debug("\nWeb Service Response (%f):" % elapsed
     98              logger.debug("\nWeb Service Response" + (elapsed ? " (%f):" % elapsed : ":")
    9999              indented = response.raw_body.split(/\n/).map{|x| "  #{x}"}.join("\n") 
    100100              logger.debug(indented)