Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit b104500

Browse files
Added some logging
1 parent af38491 commit b104500

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/db/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::{
55
};
66
use async_trait::async_trait;
77
use chrono::{DateTime, Utc};
8+
use log::info;
89
use uuid::Uuid;
910

1011
mod postgres;
@@ -64,6 +65,7 @@ impl DatabaseFactory {
6465
pub async fn get_provider(
6566
config: &DatabaseConfig,
6667
) -> Result<Box<dyn DatabaseProvider + Send + Sync>> {
68+
info!("Initializing database pools");
6769
let db = PostgresDatabase::new(config).await?;
6870
Ok(Box::new(db))
6971
}

0 commit comments

Comments
 (0)