From ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 27 Apr 2021 11:47:44 +0300 Subject: Don't log that much --- src/bin/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/bin/main.rs') diff --git a/src/bin/main.rs b/src/bin/main.rs index 882fdc6..bf5f6b0 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,5 +1,4 @@ use std::env; -use warp::Filter; // use gradecoin::error; use gradecoin::routes::consensus_routes; @@ -19,9 +18,9 @@ async fn main() { let api = consensus_routes(db); - let routes = api.with(warp::log("gradecoin")); + // let routes = api.with(warp::log("gradecoin")); // Start the server let point = ([127, 0, 0, 1], 8080); - warp::serve(routes).run(point).await; + warp::serve(api).run(point).await; } -- cgit v1.2.3-70-g09d2