From 953fcf7c0d829a7664c06a75bbd29987afe7b654 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 10 May 2021 21:04:26 +0300 Subject: Remove old logging residue --- src/bin/main.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/bin') diff --git a/src/bin/main.rs b/src/bin/main.rs index bf5f6b0..f1fa908 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,25 +1,14 @@ -use std::env; - -// use gradecoin::error; use gradecoin::routes::consensus_routes; use gradecoin::schema::create_database; -// mod validators; - #[tokio::main] async fn main() { - // Show debug logs by default by setting `RUST_LOG=gradecoin=debug` - if env::var_os("RUST_LOG").is_none() { - env::set_var("RUST_LOG", "gradecoin=debug"); - } log4rs::init_file("log.conf.yml", Default::default()).unwrap(); let db = create_database(); let api = consensus_routes(db); - // let routes = api.with(warp::log("gradecoin")); - // Start the server let point = ([127, 0, 0, 1], 8080); warp::serve(api).run(point).await; -- cgit v1.2.3-70-g09d2