chore(log): update to log 0.4
This commit is contained in:
@@ -14,7 +14,7 @@ use futures::stream::Stream;
|
||||
use hyper::Client;
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
|
||||
let url = match env::args().nth(1) {
|
||||
Some(url) => url,
|
||||
|
||||
@@ -9,7 +9,7 @@ use hyper::server::{Http, Response, const_service, service_fn};
|
||||
static PHRASE: &'static [u8] = b"Hello World!";
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr = ([127, 0, 0, 1], 3000).into();
|
||||
|
||||
let new_service = const_service(service_fn(|_| {
|
||||
|
||||
@@ -41,7 +41,7 @@ impl Service for Srv {
|
||||
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr1 = "127.0.0.1:1337".parse().unwrap();
|
||||
let addr2 = "127.0.0.1:1338".parse().unwrap();
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ impl Service for ParamExample {
|
||||
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr = "127.0.0.1:1337".parse().unwrap();
|
||||
|
||||
let server = Http::new().bind(&addr, || Ok(ParamExample)).unwrap();
|
||||
|
||||
@@ -132,7 +132,7 @@ impl Service for ResponseExamples {
|
||||
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr = "127.0.0.1:1337".parse().unwrap();
|
||||
|
||||
let server = Http::new().bind(&addr, || Ok(ResponseExamples)).unwrap();
|
||||
|
||||
@@ -44,7 +44,7 @@ impl Service for Echo {
|
||||
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr = "127.0.0.1:1337".parse().unwrap();
|
||||
|
||||
let server = Http::new().bind(&addr, || Ok(Echo)).unwrap();
|
||||
|
||||
@@ -76,7 +76,7 @@ impl Service for ResponseExamples {
|
||||
|
||||
|
||||
fn main() {
|
||||
pretty_env_logger::init().unwrap();
|
||||
pretty_env_logger::init();
|
||||
let addr = "127.0.0.1:1337".parse().unwrap();
|
||||
|
||||
let mut core = tokio_core::reactor::Core::new().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user