deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/2] Core: Make backtrace in console longer
Date Fri, 30 Nov 2012 16:11:30 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/deltacloud/helpers/deltacloud_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/deltacloud/helpers/deltacloud_helper.rb b/server/lib/deltacloud/helpers/deltacloud_helper.rb
index a03a413..34519c0 100644
--- a/server/lib/deltacloud/helpers/deltacloud_helper.rb
+++ b/server/lib/deltacloud/helpers/deltacloud_helper.rb
@@ -101,7 +101,7 @@ module Deltacloud::Helpers
       response.status = @code
 
       backtrace = (@error.respond_to?(:backtrace) and !@error.backtrace.nil?) ?
-        "\n\n#{@error.backtrace[0..10].join("\n")}\n\n" : ''
+        "\n\n#{@error.backtrace[0..20].join("\n")}\n\n" : ''
 
       if @code.to_s =~ /5(\d+)/
         log.error(@code.to_s) { "[#{@error.class.to_s}] #{message}#{backtrace}" }
-- 
1.8.0


Mime
View raw message