diff options
-rw-r--r-- | actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb index a8f34f2e33..511d00ca44 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb @@ -95,7 +95,7 @@ module ActionWebService # :nodoc: def log_response(response, elapsed) unless logger.nil? || response.nil? - logger.debug("\nWeb Service Response (%f):" % elapsed) + logger.debug("\nWeb Service Response" + (elapsed ? " (%f):" % elapsed : ":")) indented = response.raw_body.split(/\n/).map{|x| " #{x}"}.join("\n") logger.debug(indented) end |