diff options
author | Yigit Sever | 2021-04-15 23:03:58 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-15 23:03:58 +0300 |
commit | 8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379 (patch) | |
tree | e0bb5359ee7f1905f9829e5b95a64d1fb9553c7c /src/bin | |
parent | 7ee9ebea367895b1b028c7a842a635f271d6f8c4 (diff) | |
download | gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.tar.gz gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.tar.bz2 gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.zip |
Switch over to big boy logging
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/main.rs | 3 |
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] |
11 | async fn main() { | 11 | async 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 | ||