From f4769a950cfbaac231e04a60d68683e28c4f6b0c Mon Sep 17 00:00:00 2001 From: Alexey Galakhov Date: Tue, 14 May 2019 02:10:51 +0200 Subject: [PATCH] example: trivial: init logger in server example Signed-off-by: Alexey Galakhov --- examples/server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/server.rs b/examples/server.rs index 86df2fe..d1b5d95 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -1,4 +1,5 @@ extern crate tungstenite; +extern crate env_logger; use std::thread::spawn; use std::net::TcpListener; @@ -7,6 +8,7 @@ use tungstenite::accept_hdr; use tungstenite::handshake::server::Request; fn main() { + env_logger::init(); let server = TcpListener::bind("127.0.0.1:3012").unwrap(); for stream in server.incoming() { spawn(move || {