diff options
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,8 +17,8 @@ import ( func (pb *Auto) GoodExit(msg string) { go ExitWatchdog() - if myAuto.appExit != nil { - myAuto.appExit() + if me.appExit != nil { + me.appExit() } dur := time.Since(pb.Ctime.AsTime()) log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur)) @@ -27,8 +27,8 @@ func (pb *Auto) GoodExit(msg string) { func (pb *Auto) BadExit(msg string, err error) { go ExitWatchdog() - if myAuto.appExit != nil { - myAuto.appExit() + if me.appExit != nil { + me.appExit() } // print out errors. this handles wrapped errors which is a useful if err != nil { @@ -68,7 +68,7 @@ func ExitWatchdog() { return case t := <-dog.C: _ = t - log.Info("argv.Exit() watchdog: stalled in", myAuto.ARGNAME+".Exit()") + log.Info("argv.Exit() watchdog: stalled in", me.ARGNAME+".Exit()") // h.Scan() } } |
