From 731b91e0a9710ce3944e6723a7eda43e2935d5de Mon Sep 17 00:00:00 2001 From: beckerinj Date: Tue, 11 Jul 2023 14:46:22 -0400 Subject: [PATCH] startup log after logger init --- core/src/main.rs | 2 -- core/src/state.rs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main.rs b/core/src/main.rs index 3cbcc78ff..dc61dfbff 100644 --- a/core/src/main.rs +++ b/core/src/main.rs @@ -16,8 +16,6 @@ mod state; mod ws; async fn app() -> anyhow::Result<()> { - debug!("loading state"); - let state = state::State::load().await?; info!("version: v{}", env!("CARGO_PKG_VERSION")); diff --git a/core/src/state.rs b/core/src/state.rs index 026bd082c..9716e74f9 100644 --- a/core/src/state.rs +++ b/core/src/state.rs @@ -55,6 +55,8 @@ impl State { .init() .context("failed to configure logger")?; + debug!("loading state"); + let state: Arc = State { env, db: DbClient::new(&config).await?,