Skip to content

Commit

Permalink
More logging for restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nemere committed Sep 16, 2024
1 parent 1426e73 commit 9ee74b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/ws/handlers/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func runRestore(startTimestamp int64, svcs *services.APIServices, downloadRemote
restore, errDBRestore := wsHelpers.MakeMongoRestoreInstance(svcs.MongoDetails, svcs.Log, mongoDBConnection.GetDatabaseName("pixlise", svcs.Config.EnvironmentName), restoreFromDBName)

if errDBRestore == nil {
svcs.Log.Infof("Mongo Restore starting...")
result := restore.Restore()
if result.Err != nil {
errDBRestore = result.Err
Expand Down Expand Up @@ -267,6 +268,7 @@ func runRestore(startTimestamp int64, svcs *services.APIServices, downloadRemote
}

if err != nil {
svcs.Log.Errorf("%v", err)
return
}

Expand Down

0 comments on commit 9ee74b0

Please sign in to comment.