tweak debug message for app success
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user