aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/main.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-13 04:51:19 +0300
committerYigit Sever2021-04-13 04:51:19 +0300
commit8b50bf2e66f02e64e7fbec8079094bafb5ccdc6a (patch)
tree615f6254a326077f83aa5200c822bceb823696e0 /src/bin/main.rs
parent0158bc39981a751d53e2d12633d179d22484c791 (diff)
downloadgradecoin-8b50bf2e66f02e64e7fbec8079094bafb5ccdc6a.tar.gz
gradecoin-8b50bf2e66f02e64e7fbec8079094bafb5ccdc6a.tar.bz2
gradecoin-8b50bf2e66f02e64e7fbec8079094bafb5ccdc6a.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/main.rs')
-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 }