Print to stdout instead. (#120)

This commit is contained in:
kixelated 2023-11-07 15:59:09 +09:00 committed by GitHub
parent eace2f7bfa
commit 159a175915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ impl Publisher {
.chunk(delta.clone().into()) .chunk(delta.clone().into())
.context("failed to write delta")?; .context("failed to write delta")?;
log::info!("{}{}", base, delta); println!("{}{}", base, delta);
let next = now + chrono::Duration::seconds(1); let next = now + chrono::Duration::seconds(1);
let next = next.with_nanosecond(0).unwrap(); let next = next.with_nanosecond(0).unwrap();
@ -132,7 +132,7 @@ impl Subscriber {
let value = Self::recv_fragment(fragment, base.clone()).await?; let value = Self::recv_fragment(fragment, base.clone()).await?;
let str = String::from_utf8(value).context("invalid UTF-8")?; let str = String::from_utf8(value).context("invalid UTF-8")?;
log::info!("{}", str); println!("{}", str);
} }
Ok(()) Ok(())