diff options
author | Galen Guyer <galen@galenguyer.com> | 2022-06-02 23:24:21 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2022-06-02 23:24:21 -0400 |
commit | c596f05cfab5226ce7bf6e3ad4c0310c3e2a1981 (patch) | |
tree | c32a61b2b54e9dc30658d463ff5b88f087e650e6 | |
parent | 488a023a113dd6b4f7bc6cdedd0c7de290b194ba (diff) |
print features early on boot
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 3 |
3 files changed, 5 insertions, 2 deletions
@@ -332,7 +332,7 @@ checksum = "77f3309417938f28bf8228fcff79a4a37103981e3e186d2ccd19c74b38f4eb71" [[package]] name = "fdns-api" -version = "0.1.1" +version = "0.1.2" dependencies = [ "addr", "anyhow", @@ -1,6 +1,6 @@ [package] name = "fdns-api" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index cde4fec..997e693 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,9 @@ async fn main() { return; } + println!("SIGNUPS_ENABLED = {}", *features::SIGNUPS_ENABLED); + println!("TOTP_ENABLED = {}", *features::TOTP_ENABLED); + // Set logging levels if not already set if env::var_os("RUST_LOG").is_none() { env::set_var("RUST_LOG", "fdns_api=debug,tower_http=debug"); |