tweak stack trace log
authorTom Clegg <tom@clinicalfuture.com>
Fri, 11 Jan 2013 07:47:53 +0000 (23:47 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 11 Jan 2013 07:47:53 +0000 (23:47 -0800)
app/controllers/application_controller.rb

index 2bbcee8c2d0f0c1eb4f44cb82f2860441a7d154a..493db3cc1bfe6661a8a2120ee78705a4f9b49ffd 100644 (file)
@@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base
 
   def render_error(e)
     logger.error e.inspect
-    logger.error e.backtrace.collect { |x| x + "\n" } if e.backtrace
+    logger.error e.backtrace.collect { |x| x + "\n" }.join('') if e.backtrace
     if @object and @object.errors and @object.errors.full_messages
       errors = @object.errors.full_messages
     else