From 9ee74b0e3c92f828f9091d57a939109377131b15 Mon Sep 17 00:00:00 2001 From: Peter Nemere Date: Mon, 16 Sep 2024 22:13:49 +1000 Subject: [PATCH] More logging for restore --- api/ws/handlers/system.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/ws/handlers/system.go b/api/ws/handlers/system.go index 75621c7a..2eb143e0 100644 --- a/api/ws/handlers/system.go +++ b/api/ws/handlers/system.go @@ -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 @@ -267,6 +268,7 @@ func runRestore(startTimestamp int64, svcs *services.APIServices, downloadRemote } if err != nil { + svcs.Log.Errorf("%v", err) return }