From a5f54b18d61cd4a0ec298b770b63e0b7fd1b5d1d Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Mon, 9 Jul 2018 09:27:21 -0400 Subject: [PATCH] ser(structure): make log messages consistent --- src/ser/structure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ser/structure.rs b/src/ser/structure.rs index 5541947..f08831a 100644 --- a/src/ser/structure.rs +++ b/src/ser/structure.rs @@ -57,12 +57,12 @@ impl<'a> SerializeStruct for Struct<'a> { // Push key name onto stack so if the value is a struct, it will pick up // the correct name self.ser.hierarchy.push(key); - debug!("SerializeStruct(name: {}): serialize_field, key: {}, hierarchy: {:?}", self.name, key, self.ser.hierarchy); + debug!("SerializeStruct(name: {})::serialize_field(key: {}) => hierarchy: {:?}", self.name, key, self.ser.hierarchy); let hint = value.serialize(&mut *self.ser)?.ok_or(KbinErrorKind::MissingTypeHint)?; let node_type = hint.node_type; let array_mask = if hint.is_array { ARRAY_MASK } else { 0 }; - debug!("SerializeStruct(name: {}): serialize_field, key: {}, hint: {:?}", self.name, key, hint); + debug!("SerializeStruct(name: {})::serialize_field(key: {}) => hint: {:?}", self.name, key, hint); // Struct handler outputs the `NodeStart` event by itself. Avoid repeating it. if node_type != StandardType::NodeStart {