lib/td/logger/agent/access_log.rb in td-logger-0.2.6 vs lib/td/logger/agent/access_log.rb in td-logger-0.2.7
- old
+ new
@@ -59,10 +59,12 @@
end
# merge params
req.params.each_pair {|key,val|
key = key.to_sym
- unless record.has_key?(key) || filter_parameters.include?(key)
+ if !record.has_key?(key) &&
+ !filter_parameters.include?(key) &&
+ val.respond_to?(:to_msgpack)
record[key] = val
end
}
# 'method' column