Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Add backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Aug 27, 2016
1 parent c1a8473 commit f693adf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/timber/contexts/exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(exception)

def backtrace
# only the first 5 lines to save on space
@backtrace ||= exception.backtrace[0..5]
@backtrace ||= exception.backtrace[0..4]
end

def name
Expand All @@ -31,7 +31,8 @@ def json_payload
@json_payload ||= Macros::DeepMerger.merge({
# order is relevant for logfmt styling
:name => name,
:message => message
:message => message,
:backtrace => backtrace
}, super).freeze
end
end
Expand Down

0 comments on commit f693adf

Please sign in to comment.