From 02a5a6b00a9143897845a9284e801e40f36fdaaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C4=85d?= Date: Wed, 29 May 2024 16:36:59 +0200 Subject: [PATCH] Even more startup logs (#43) --- src/db.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/db.rs b/src/db.rs index 666bcb0..f4c0613 100644 --- a/src/db.rs +++ b/src/db.rs @@ -30,13 +30,17 @@ impl Database { let connection_string = config.to_connection_string(); if !Postgres::database_exists(&connection_string).await? { + tracing::info!("Creating database"); Postgres::create_database(&connection_string).await?; } + tracing::info!("Connecting to the database"); let pool = Pool::connect(&connection_string).await?; + tracing::info!("Running migrations"); MIGRATOR.run(&pool).await?; + tracing::info!("Database initialized"); Ok(Self { pool }) }