Skip to content

Commit b83d68e

Browse files
committed
less verbose logging by default
1 parent aa1e635 commit b83d68e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webserver/database/migrations.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ pub async fn apply(db: &Database) -> anyhow::Result<()> {
1818
);
1919
return Ok(());
2020
}
21-
log::info!("Applying migrations from '{}'", migrations_dir.display());
22-
let migrator = Migrator::new(migrations_dir)
21+
log::debug!("Applying migrations from '{}'", migrations_dir.display());
22+
let migrator = Migrator::new(migrations_dir.clone())
2323
.await
2424
.with_context(|| migration_err("preparing the database migration"))?;
2525
if migrator.migrations.is_empty() {
26-
log::info!("No migration found. \
26+
log::info!("No migration found in {}. \
2727
You can specify database operations to apply when the server first starts by creating files \
2828
in {MIGRATIONS_DIR}/<VERSION>_<DESCRIPTION>.sql \
29-
where <VERSION> is a number and <DESCRIPTION> is a short string.");
29+
where <VERSION> is a number and <DESCRIPTION> is a short string.", migrations_dir.display());
3030
return Ok(());
3131
}
3232
log::info!("Found {} migrations:", migrator.migrations.len());

0 commit comments

Comments
 (0)