startup log after logger init

This commit is contained in:
beckerinj
2023-07-11 14:46:22 -04:00
parent 60205ece9d
commit 731b91e0a9
2 changed files with 2 additions and 2 deletions

View File

@@ -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"));

View File

@@ -55,6 +55,8 @@ impl State {
.init()
.context("failed to configure logger")?;
debug!("loading state");
let state: Arc<State> = State {
env,
db: DbClient::new(&config).await?,