lib/ougai/logger.rb in ougai-1.5.5 vs lib/ougai/logger.rb in ougai-1.5.6
- old
+ new
@@ -57,11 +57,11 @@
end
# @private
def chain(severity, args, fields, hooks)
hooks.push(@before_log) if @before_log
- write(severity, args, merge_fields(@with_fields, fields), hooks)
+ write(severity, args, weak_merge!(fields, @with_fields), hooks)
end
protected
# @private
@@ -79,10 +79,10 @@
def format_severity(severity)
to_label(severity)
end
def write(severity, args, fields, hooks)
- data = merge_fields(fields, to_item(args))
+ data = weak_merge!(to_item(args), fields)
hooks.each do |hook|
return false if hook.call(data) == false
end
add(severity, data)
end