Skip to content

Commit

Permalink
Merge pull request #320 from pixlise/feature/impersonate-user
Browse files Browse the repository at this point in the history
More logging for restore
  • Loading branch information
pnemere authored Sep 16, 2024
2 parents 91fdef9 + 9ee74b0 commit 0bf52c8
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 0bf52c8

Please sign in to comment.