Skip to content

Commit 6013ba0

Browse files
committed
Output for migrations
1 parent c6e172c commit 6013ba0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sentry/src/db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ pub async fn setup_migrations() {
8585
// set `swallow_completion` to `true`
8686
// so no error will be returned if all migrations have already been ran
8787
.swallow_completion(true)
88+
.show_output(true)
8889
.direction(Direction::Up)
8990
.all(true)
9091
.apply()

sentry/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
100100

101101
let logger = logger();
102102
let redis = redis_connection().await?;
103-
// setup migrations before setting up Postgres
103+
info!(&logger, "Checking connection and applying migrations...");
104+
// Check connection and setup migrations before setting up Postgres
104105
setup_migrations().await;
105106
let postgres = postgres_connection().await?;
106107

0 commit comments

Comments
 (0)