summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-27 05:23:34 -0400
committerseth <[email protected]>2024-05-27 05:23:34 -0400
commit5e23c92215d7db92b7e998d9dc1c2dc8a3329166 (patch)
tree538f5c2f81474dd5baec0ea42c6fd46653ca4ff2
parent309fdfdc7ce195e1f9b703bef90a08b150695c1b (diff)
logging: use correct module name in RUST_LOG
-rw-r--r--.env.template2
-rw-r--r--src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/.env.template b/.env.template
index 5370a1a..cb6a9c1 100644
--- a/.env.template
+++ b/.env.template
@@ -1,4 +1,4 @@
DISCORD_BOT_TOKEN=""
-RUST_LOG="nixpkgs_discord_tracker=debug,warn"
+RUST_LOG="nixpkgs_tracker_bot=debug,warn"
RUST_BACKTRACE="1"
diff --git a/src/main.rs b/src/main.rs
index 3a604ba..83b2e58 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,7 +9,7 @@ mod http;
fn init_logging() {
let fmt_layer = tracing_subscriber::fmt::layer().pretty();
let env_filter = tracing_subscriber::EnvFilter::try_from_default_env()
- .unwrap_or_else(|_| "nixpkgs_discord_tracker=info,warn".into());
+ .unwrap_or_else(|_| "nixpkgs_tracker_bot=info,warn".into());
tracing_subscriber::registry()
.with(fmt_layer)