From bc36f5a2b71fef1762dfd5bef5d74080438b5797 Mon Sep 17 00:00:00 2001 From: Jean-Marc Andre Date: Tue, 16 Feb 2021 20:01:52 +0100 Subject: [PATCH] fine tuning and logging --- pkg/restic/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/restic/root.go b/pkg/restic/root.go index df6aec1..dabd1c1 100644 --- a/pkg/restic/root.go +++ b/pkg/restic/root.go @@ -92,7 +92,9 @@ func RestorePaths(repository string, snapshotId string) ([]byte, error) { return []byte{}, err } cmd := exec.Command(resticExec, "restore", "-r", repository, snapshotId, "--target", "/") - return cmd.CombinedOutput() + output, err := cmd.CombinedOutput() + log.V(1).Info("restic restore output", "output", string(output)) + return output, err } func DeleteSnapshot(snapshot string) error {