diff options
author | Yigit Sever | 2021-04-27 11:47:44 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-27 11:47:44 +0300 |
commit | ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021 (patch) | |
tree | 49467dbb4c34a1873a322b0a757b614f0b0cf91a | |
parent | 154f6b5f912308723c27ef85187920396ced647f (diff) | |
download | gradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.tar.gz gradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.tar.bz2 gradecoin-ed0fdc25468e0eb7fee3cd9c9fa2484b83e9a021.zip |
Don't log that much
-rw-r--r-- | src/bin/main.rs | 5 |
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 @@ | |||
1 | use std::env; | 1 | use std::env; |
2 | use warp::Filter; | ||
3 | 2 | ||
4 | // use gradecoin::error; | 3 | // use gradecoin::error; |
5 | use gradecoin::routes::consensus_routes; | 4 | use 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 | } |