lib/twiglet/logger.rb in twiglet-3.3.6 vs lib/twiglet/logger.rb in twiglet-3.3.7
- old
+ new
@@ -44,10 +44,10 @@
def error(message = nil, error = nil, &block)
if error
error_fields = {
error: {
- type: error.class,
+ type: error.class.to_s,
message: error.message
}
}
add_stack_trace(error_fields, error)
message = Message.new(message).merge(error_fields)