mirror of https://github.com/fafhrd91/actix-net
revert env_logger removal
This commit is contained in:
parent
e184e318ef
commit
1e7bb0b8a0
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue