From af24c452261c54e82dc1aa6050da65ecf4b69725 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 26 Sep 2023 21:54:57 +0200 Subject: [PATCH] feat: add trace instead of println Signed-off-by: kjuulh --- crates/crunch-codegen/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/crunch-codegen/src/lib.rs b/crates/crunch-codegen/src/lib.rs index 88838e7..ff710d0 100644 --- a/crates/crunch-codegen/src/lib.rs +++ b/crates/crunch-codegen/src/lib.rs @@ -71,13 +71,13 @@ impl Node { fn traverse_indent(&self, indent: usize) -> genco::lang::rust::Tokens { let padding = " ".repeat(indent * 4); - println!("visited: {}", self.segment); + tracing::trace!("node traverse visited: {}", self.segment); let mut message_tokens = Vec::new(); if let Some(file) = &self.file { if let Some(messages) = &self.messages { for message in messages.iter() { - println!("messages: {message}"); + tracing::trace!("node traverse visited message: {}", message); let tokens: genco::lang::rust::Tokens = quote! { impl ::crunch::traits::Serializer for $(message) { fn serialize(&self) -> Result, ::crunch::errors::SerializeError> {