graph: Ensure logger kvs are sent to ElasticSearch as a map
@@ -296,15 +296,14 @@ impl Drain for ElasticDrain {
// Serialize log message arguments
let mut serializer = SimpleKVSerializer::new();
values
- .clone()
.serialize(record, &mut serializer)
.expect("failed to serialize log message arguments");
let (n_value_kvs, value_kvs) = serializer.finish();
// Serialize log message arguments into hash map
let mut serializer = HashMapKVSerializer::new();
- values
- .clone()
+ record
+ .kv()
.serialize(record, &mut serializer)
.expect("failed to serialize log message arguments into hash map");
let arguments = serializer.finish();
