summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-06-02 23:24:21 -0400
committerGalen Guyer <galen@galenguyer.com>2022-06-02 23:24:21 -0400
commitc596f05cfab5226ce7bf6e3ad4c0310c3e2a1981 (patch)
treec32a61b2b54e9dc30658d463ff5b88f087e650e6
parent488a023a113dd6b4f7bc6cdedd0c7de290b194ba (diff)
print features early on boot
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs3
3 files changed, 5 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 634cc03..652a0b6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -332,7 +332,7 @@ checksum = "77f3309417938f28bf8228fcff79a4a37103981e3e186d2ccd19c74b38f4eb71"
[[package]]
name = "fdns-api"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"addr",
"anyhow",
diff --git a/Cargo.toml b/Cargo.toml
index 8007708..ff5ba70 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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");