Skip to content

Commit

Permalink
fix to dump error object with its class and message
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Apr 15, 2016
1 parent 869ac29 commit bbcef4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fluent/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ def event(level, args)
}

map.each_pair {|k,v|
message << " #{k}=#{v.inspect}"
if k == "error".freeze
message << " error=#{v.class}[#{v.message}]"
else
message << " #{k}=#{v.inspect}"
end
}

unless @threads_exclude_events.include?(Thread.current)
Expand Down

0 comments on commit bbcef4d

Please sign in to comment.