From ff3d2e42f472e6aedbb1773e069125d96bdabbba Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 8 Jun 2017 19:19:45 +0200 Subject: [PATCH] migrate: Be a bit more verbose --- src/cmds/restic/cmd_migrate.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmds/restic/cmd_migrate.go b/src/cmds/restic/cmd_migrate.go index 6be04cc0b..b585534a2 100644 --- a/src/cmds/restic/cmd_migrate.go +++ b/src/cmds/restic/cmd_migrate.go @@ -39,7 +39,7 @@ func checkMigrations(opts MigrateOptions, gopts GlobalOptions, repo restic.Repos } if ok { - Printf(" %v\n", m.Name()) + Printf(" %v: %v\n", m.Name(), m.Desc()) } } @@ -59,10 +59,11 @@ func applyMigrations(opts MigrateOptions, gopts GlobalOptions, repo restic.Repos } if !ok { - Warnf("migration %v cannot be applied: check failed\n") + Warnf("migration %v cannot be applied: check failed\n", m.Name()) continue } + Printf("applying migration %v...\n", m.Name()) if err = m.Apply(ctx, repo); err != nil { Warnf("migration %v failed: %v\n", m.Name(), err) if firsterr == nil {