Dont log db url on connection error (fixes #4453)

This commit is contained in:
Felix Ableitner 2024-02-16 13:05:25 +01:00
parent a3bf2f1cf1
commit 3f4dbc1b69

View file

@ -370,7 +370,7 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!();
fn run_migrations(db_url: &str) -> Result<(), LemmyError> {
// Needs to be a sync connection
let mut conn =
PgConnection::establish(db_url).with_context(|| format!("Error connecting to {db_url}"))?;
PgConnection::establish(db_url).with_context(|| format!("Error connecting to database"))?;
info!("Running Database migrations (This may take a long time)...");
conn