File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ pub async fn setup_migrations() {
85
85
// set `swallow_completion` to `true`
86
86
// so no error will be returned if all migrations have already been ran
87
87
. swallow_completion ( true )
88
+ . show_output ( true )
88
89
. direction ( Direction :: Up )
89
90
. all ( true )
90
91
. apply ( )
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
100
100
101
101
let logger = logger ( ) ;
102
102
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
104
105
setup_migrations ( ) . await ;
105
106
let postgres = postgres_connection ( ) . await ?;
106
107
You can’t perform that action at this time.
0 commit comments