1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

Fix logger request duration calculation

This commit is contained in:
Nikolay Kim
2018-04-02 11:09:24 -07:00
parent 9d39f441e9
commit 83bf852192
3 changed files with 11 additions and 13 deletions

View File

@ -11,10 +11,10 @@ fn index(_req: HttpRequest) -> &'static str {
fn main() {
::std::env::set_var("RUST_LOG", "actix_web=info");
let _ = env_logger::init();
let sys = actix::System::new("ws-example");
env_logger::init();
let sys = actix::System::new("hello-world");
let _addr = server::new(
server::new(
|| App::new()
// enable logger
.middleware(middleware::Logger::default())