We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f0ba0 commit d6a7355Copy full SHA for d6a7355
src/main.rs
@@ -44,6 +44,8 @@ fn run() -> Result<()> {
44
// it gets dropped inside an async call
45
let res: Result<()> = runtime.handle().block_on(
46
async {
47
+ debug!("Running in runtime");
48
+
49
let pool = setup_database(&config.general.db).await?;
50
let authority =
51
DatabaseAuthority::new(pool.clone(), &config.general.name, config.records);
@@ -76,6 +78,7 @@ fn run() -> Result<()> {
76
78
77
79
#[tracing::instrument(skip(db))]
80
async fn setup_database(db: &str) -> Result<PgPool, sqlx::Error> {
81
+ debug!("Starting DB Setup");
82
let options = PgConnectOptions::from_str(db)?;
83
let pool = PgPoolOptions::new()
84
.max_connections(5)
0 commit comments