aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
authorYigit Sever2021-04-13 04:51:19 +0300
committerYigit Sever2021-04-13 04:51:19 +0300
commit116af4059f43eb3986b54fee080af9f67c247472 (patch)
tree387c03347f7d72fe949861518cfc606759b4c4a2 /src/bin
parent14b6904f00a17d3d6757a7e5222df966aa37fa35 (diff)
downloadgradecoin-116af4059f43eb3986b54fee080af9f67c247472.tar.gz
gradecoin-116af4059f43eb3986b54fee080af9f67c247472.tar.bz2
gradecoin-116af4059f43eb3986b54fee080af9f67c247472.zip
Require authorization for Block POST
Not tested because it's impossible to follow without verbose error messages, failing 1 test
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index 8d88286..598a2e1 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -8,7 +8,7 @@ use gradecoin::schema::create_database;
8 8
9#[tokio::main] 9#[tokio::main]
10async fn main() { 10async fn main() {
11 // Show debug logs by default by setting `RUST_LOG=restful_rust=debug` 11 // Show debug logs by default by setting `RUST_LOG=gradecoin=debug`
12 if env::var_os("RUST_LOG").is_none() { 12 if env::var_os("RUST_LOG").is_none() {
13 env::set_var("RUST_LOG", "gradecoin=debug"); 13 env::set_var("RUST_LOG", "gradecoin=debug");
14 } 14 }