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.
cargo run
1 parent 6338388 commit 4a1b346Copy full SHA for 4a1b346
src/db/pool.rs
@@ -1,5 +1,6 @@
1
use crate::metrics::Metrics;
2
use crate::Config;
3
+use log::debug;
4
use postgres::{Client, NoTls};
5
use r2d2_postgres::PostgresConnectionManager;
6
use std::sync::Arc;
@@ -20,6 +21,9 @@ pub struct Pool {
20
21
22
impl Pool {
23
pub fn new(config: &Config, metrics: Arc<Metrics>) -> Result<Pool, PoolError> {
24
+ debug!(
25
+ "creating database pool (if this hangs, consider running `docker-compose up -d db s3`)"
26
+ );
27
Self::new_inner(config, metrics, DEFAULT_SCHEMA)
28
}
29
0 commit comments