deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/2] git commit: Core: Make backtrace in console longer
Date Fri, 30 Nov 2012 16:10:39 GMT
Core: Make backtrace in console longer


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/321de1a8
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/321de1a8
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/321de1a8

Branch: refs/heads/master
Commit: 321de1a8cf4f1710b60bb7abb6ecafbfee0cdb8f
Parents: 9c07013
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Nov 30 17:03:55 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Nov 30 17:03:55 2012 +0100

----------------------------------------------------------------------
 server/lib/deltacloud/helpers/deltacloud_helper.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/321de1a8/server/lib/deltacloud/helpers/deltacloud_helper.rb
----------------------------------------------------------------------
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}" }


Mime
View raw message