aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/main.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-27 11:47:44 +0300
committerYigit Sever2021-04-27 11:47:44 +0300
commited0fdc25468e0eb7fee3cd9c9fa2484b83e9a021 (patch)
tree49467dbb4c34a1873a322b0a757b614f0b0cf91a /src/bin/main.rs
parent154f6b5f912308723c27ef85187920396ced647f (diff)
downloadgradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.tar.gz
gradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.tar.bz2
gradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.zip
Don't log that much
Diffstat (limited to 'src/bin/main.rs')
-rw-r--r--src/bin/main.rs5
1 files changed, 2 insertions, 3 deletions
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 @@
1use std::env; 1use std::env;
2use warp::Filter;
3 2
4// use gradecoin::error; 3// use gradecoin::error;
5use gradecoin::routes::consensus_routes; 4use gradecoin::routes::consensus_routes;
@@ -19,9 +18,9 @@ async fn main() {
19 18
20 let api = consensus_routes(db); 19 let api = consensus_routes(db);
21 20
22 let routes = api.with(warp::log("gradecoin")); 21 // let routes = api.with(warp::log("gradecoin"));
23 22
24 // Start the server 23 // Start the server
25 let point = ([127, 0, 0, 1], 8080); 24 let point = ([127, 0, 0, 1], 8080);
26 warp::serve(routes).run(point).await; 25 warp::serve(api).run(point).await;
27} 26}