diff --git a/src/main.rs b/src/main.rs index 72a2367..4b92e6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,6 @@ const MAX_SEND_AMOUNT: u64 = 10_000_000; #[tokio::main] async fn main() -> anyhow::Result<()> { - pretty_env_logger::try_init()?; let state = setup().await; let app = Router::new() diff --git a/src/setup.rs b/src/setup.rs index a4b713b..40d7022 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -10,6 +10,8 @@ pub async fn setup() -> AppState { dotenv::from_filename(".env.local").ok(); dotenv::from_filename(".env").ok(); dotenv::dotenv().ok(); + // log env logger after dotenv + pretty_env_logger::try_init()?; let host = env::var("HOST").expect("missing HOST");