From b07a74543bc81fa818b0ad0e1ef496e8c74fccf3 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 1 Aug 2023 11:18:00 +0200 Subject: [PATCH] tweak debug message for app success --- config.go | 6 +++++- version.go | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/config.go b/config.go index 4301d2a..d4e3e9e 100644 --- a/config.go +++ b/config.go @@ -184,7 +184,11 @@ func (c *Config) Run() { if sched, err := app.Run(e.startTime); err != nil { e.AddItem(fmt.Sprintf(" - App : Error running %s (%s)", app.name, err)) } else if *debug { - e.AddItem(fmt.Sprintf(" - App : Success backing up %s (%s)", app.name, sched)) + if sched != "" { + e.AddItem(fmt.Sprintf(" - App : Success backing up %s (%s)", app.name, sched)) + } else { + e.AddItem(fmt.Sprintf(" - App : No backup for %s", app.name)) + } } wg.Done() }(a) diff --git a/version.go b/version.go index 1ce2311..f035ce1 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "9c15294" +var githash = "ab4bfd0" var branch = "v2" -var buildstamp = "2023-08-01_08:09:16" -var commits = "80" -var version = "9c15294-b80 - 2023-08-01_08:09:16" +var buildstamp = "2023-08-01_09:17:25" +var commits = "81" +var version = "ab4bfd0-b81 - 2023-08-01_09:17:25"