diff --git a/app/vmbackup/main.go b/app/vmbackup/main.go index bbaa2a77a..550e3fde8 100644 --- a/app/vmbackup/main.go +++ b/app/vmbackup/main.go @@ -43,7 +43,7 @@ func main() { cgroup.UpdateGOMAXPROCSToCPUQuota() if len(*snapshotCreateURL) > 0 { - logger.Infof("%s", "Snapshots enabled") + logger.Infof("Snapshots enabled") logger.Infof("Snapshot create url %s", *snapshotCreateURL) if len(*snapshotDeleteURL) <= 0 { err := flag.Set("snapshot.deleteURL", strings.Replace(*snapshotCreateURL, "/create", "/delete", 1)) @@ -55,17 +55,17 @@ func main() { name, err := snapshot.Create(*snapshotCreateURL) if err != nil { - logger.Fatalf("%s", err) + logger.Fatalf("cannot create snapshot: %s", err) } err = flag.Set("snapshotName", name) if err != nil { - logger.Fatalf("Failed to set snapshotName flag: %v", err) + logger.Fatalf("cannot set snapshotName flag: %v", err) } defer func() { err := snapshot.Delete(*snapshotDeleteURL, name) if err != nil { - logger.Fatalf("%s", err) + logger.Fatalf("cannot delete snapshot: %s", err) } }() } diff --git a/app/vmbackup/snapshot/snapshot.go b/app/vmbackup/snapshot/snapshot.go index 852c0b3b4..774db2c6f 100644 --- a/app/vmbackup/snapshot/snapshot.go +++ b/app/vmbackup/snapshot/snapshot.go @@ -20,7 +20,7 @@ type snapshot struct { // Create creates a snapshot and the provided api endpoint and returns // the snapshot name func Create(createSnapshotURL string) (string, error) { - logger.Infof("%s", "Creating snapshot") + logger.Infof("Creating snapshot") u, err := url.Parse(createSnapshotURL) if err != nil { return "", err