revert env_logger removal

This commit is contained in:
Rob Ede 2022-03-08 23:06:45 +00:00
parent e184e318ef
commit 1e7bb0b8a0
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 3 additions and 4 deletions

View File

@ -45,6 +45,6 @@ actix-codec = "0.5.0"
actix-rt = "2.6.0"
bytes = "1"
env_logger = "0.9"
futures-util = { version = "0.3.7", default-features = false, features = ["sink", "async-await-macro"] }
tokio = { version = "1.13.1", features = ["io-util", "rt-multi-thread", "macros", "fs"] }
tracing-subscriber = "0.3.8"

View File

@ -18,7 +18,7 @@ use futures_util::{SinkExt as _, StreamExt as _};
use tokio::{fs::File, io::AsyncReadExt as _};
async fn run() -> io::Result<()> {
tracing_subscriber::fmt::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
let addr = ("127.0.0.1", 8080);
tracing::info!("starting server on port: {}", &addr.0);

View File

@ -23,10 +23,9 @@ use actix_service::{fn_service, ServiceFactoryExt as _};
use bytes::BytesMut;
use futures_util::future::ok;
use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _};
use tracing::{error, info};
async fn run() -> io::Result<()> {
tracing_subscriber::fmt::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
let count = Arc::new(AtomicUsize::new(0));