From 373965a7648dd8a3bab16c593dbbd35ee3609e68 Mon Sep 17 00:00:00 2001 From: Roland <33993199+rolznz@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:15:54 +0700 Subject: [PATCH] chore: add extra migration backup logs (#757) * chore: add extra migration backup logs * chore: minor copy --- api/backup.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/backup.go b/api/backup.go index a2452786..3532bddf 100644 --- a/api/backup.go +++ b/api/backup.go @@ -23,6 +23,7 @@ import ( ) func (api *api) CreateBackup(unlockPassword string, w io.Writer) error { + logger.Logger.Info("Creating backup to migrate Alby Hub to another device") var err error if !api.cfg.CheckUnlockPassword(unlockPassword) { @@ -130,10 +131,14 @@ func (api *api) CreateBackup(unlockPassword string, w io.Writer) error { } } + logger.Logger.Info("Successfully created backup to migrate Alby Hub to another device") + return nil } func (api *api) RestoreBackup(unlockPassword string, r io.Reader) error { + logger.Logger.Info("Restoring migration backup file") + workDir, err := filepath.Abs(api.cfg.GetEnv().Workdir) if err != nil { return fmt.Errorf("failed to get absolute workdir: %w", err)