From 159a17591590166d9787d013abd4b5733a16e0cf Mon Sep 17 00:00:00 2001 From: kixelated Date: Tue, 7 Nov 2023 15:59:09 +0900 Subject: [PATCH] Print to stdout instead. (#120) --- moq-clock/src/clock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moq-clock/src/clock.rs b/moq-clock/src/clock.rs index 5faf56e..a72a0cf 100644 --- a/moq-clock/src/clock.rs +++ b/moq-clock/src/clock.rs @@ -70,7 +70,7 @@ impl Publisher { .chunk(delta.clone().into()) .context("failed to write delta")?; - log::info!("{}{}", base, delta); + println!("{}{}", base, delta); let next = now + chrono::Duration::seconds(1); let next = next.with_nanosecond(0).unwrap(); @@ -132,7 +132,7 @@ impl Subscriber { let value = Self::recv_fragment(fragment, base.clone()).await?; let str = String::from_utf8(value).context("invalid UTF-8")?; - log::info!("{}", str); + println!("{}", str); } Ok(())