diff --git a/actix-server/CHANGES.md b/actix-server/CHANGES.md index 48381e8e..c0e7fa40 100644 --- a/actix-server/CHANGES.md +++ b/actix-server/CHANGES.md @@ -5,6 +5,7 @@ ## 2.1.0 - 2022-03-08 - Update `tokio-uring` dependency to `0.3.0`. [#448] +- Logs emitted now use the `tracing` crate with `log` compatibility. [#448] - Wait for accept thread to stop before sending completion signal. [#443] [#443]: https://github.com/actix/actix-net/pull/443 diff --git a/actix-server/examples/file-reader.rs b/actix-server/examples/file-reader.rs index dff0d0ed..e4629bb5 100644 --- a/actix-server/examples/file-reader.rs +++ b/actix-server/examples/file-reader.rs @@ -41,7 +41,7 @@ async fn run() -> io::Result<()> { Some(Ok(line)) => { match File::open(&line).await { Ok(mut file) => { - tracing::info!("reading file: {line}"); + tracing::info!("reading file: {}", &line); // read file into String buffer let mut buf = String::new();