lib/twiglet/logger.rb in twiglet-2.3.11 vs lib/twiglet/logger.rb in twiglet-2.4.0

- old
+ new

@@ -32,9 +32,10 @@ def error(message = nil, error = nil, &block) if error error_fields = { 'error': { + 'type': error.class, 'message': error.message } } add_stack_trace(error_fields, error) message = Message.new(message).merge(error_fields)