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.
2 parents f316288 + c355b25 commit dfae48aCopy full SHA for dfae48a
src/main.rs
@@ -132,13 +132,19 @@ async fn get_db_pool() -> Result<Option<DbPool>,ExitCode> {
132
133
#[cfg(feature = "query-sql")]
134
async fn get_db_pool() -> Result<Option<DbPool>,ExitCode> {
135
+ use tracing::info;
136
+
137
if let Some(connection_string) = CONFIG.postgres_connection_string.clone() {
138
match db::get_pg_connection_pool(&connection_string, CONFIG.max_db_attempts).await {
139
Err(e) => {
140
error!("Error connecting to database: {}", e);
141
Err(ExitCode::from(8))
142
}
- Ok(pool) => Ok(Some(pool)),
143
144
+ Ok(pool) => {
145
+ info!("Postgresql connection established");
146
+ Ok(Some(pool))
147
+ }
148
149
} else {
150
Ok(None)
0 commit comments