aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYigit Sever2021-04-15 23:03:58 +0300
committerYigit Sever2021-04-15 23:03:58 +0300
commit44116fd9d5003f4aa041b72491e26356ed47b924 (patch)
tree0f3cb3355728a0bee87ebeca215c75bf48aa521a /src
parentbf4d0be4aeb639da5daff0e4b5458b769b9f62c1 (diff)
downloadgradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.tar.gz
gradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.tar.bz2
gradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.zip
Switch over to big boy logging
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index 8b61e5c..882fdc6 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -10,11 +10,10 @@ use gradecoin::schema::create_database;
10#[tokio::main] 10#[tokio::main]
11async fn main() { 11async fn main() {
12 // Show debug logs by default by setting `RUST_LOG=gradecoin=debug` 12 // Show debug logs by default by setting `RUST_LOG=gradecoin=debug`
13 // TODO: write logs to file? <13-04-21, yigit> //
14 if env::var_os("RUST_LOG").is_none() { 13 if env::var_os("RUST_LOG").is_none() {
15 env::set_var("RUST_LOG", "gradecoin=debug"); 14 env::set_var("RUST_LOG", "gradecoin=debug");
16 } 15 }
17 pretty_env_logger::init(); 16 log4rs::init_file("log.conf.yml", Default::default()).unwrap();
18 17
19 let db = create_database(); 18 let db = create_database();
20 19