Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc_macro_api/src/msg.rs')
-rw-r--r--crates/proc_macro_api/src/msg.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_api/src/msg.rs b/crates/proc_macro_api/src/msg.rs
index fd10d87f08..04248e0447 100644
--- a/crates/proc_macro_api/src/msg.rs
+++ b/crates/proc_macro_api/src/msg.rs
@@ -93,7 +93,7 @@ fn read_json<'a>(
// Some ill behaved macro try to use stdout for debugging
// We ignore it here
if !buf.starts_with('{') {
- log::error!("proc-macro tried to print : {}", buf);
+ tracing::error!("proc-macro tried to print : {}", buf);
continue;
}
@@ -102,7 +102,7 @@ fn read_json<'a>(
}
fn write_json(out: &mut impl Write, msg: &str) -> io::Result<()> {
- log::debug!("> {}", msg);
+ tracing::debug!("> {}", msg);
out.write_all(msg.as_bytes())?;
out.write_all(b"\n")?;
out.flush()?;