Skip to content

Commit d6a7355

Browse files
committed
fix: better logging
1 parent 89f0ba0 commit d6a7355

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ fn run() -> Result<()> {
4444
// it gets dropped inside an async call
4545
let res: Result<()> = runtime.handle().block_on(
4646
async {
47+
debug!("Running in runtime");
48+
4749
let pool = setup_database(&config.general.db).await?;
4850
let authority =
4951
DatabaseAuthority::new(pool.clone(), &config.general.name, config.records);
@@ -76,6 +78,7 @@ fn run() -> Result<()> {
7678

7779
#[tracing::instrument(skip(db))]
7880
async fn setup_database(db: &str) -> Result<PgPool, sqlx::Error> {
81+
debug!("Starting DB Setup");
7982
let options = PgConnectOptions::from_str(db)?;
8083
let pool = PgPoolOptions::new()
8184
.max_connections(5)

0 commit comments

Comments
 (0)