minor debugging on the end
This commit is contained in:
parent
8d4687e2c1
commit
2ea06531dc
|
@ -125,7 +125,10 @@ func findNext() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if findCounter == 0 {
|
if findCounter == 0 {
|
||||||
log.Info("NOTHING TO UPDATE. findCounter =", findCounter)
|
log.Info("NOTHING TO UPDATE. findCounter =", findCounter, "found len =", me.found.Len())
|
||||||
|
if me.found.Len() == 0 {
|
||||||
|
okExit("")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix)
|
log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix)
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -122,7 +122,7 @@ func main() {
|
||||||
// check if nothing is found an exit?
|
// check if nothing is found an exit?
|
||||||
if me.found.Len() == 0 {
|
if me.found.Len() == 0 {
|
||||||
log.Info("nothing found to publish")
|
log.Info("nothing found to publish")
|
||||||
os.Exit(0)
|
okExit("found nothing")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
me.Enable()
|
me.Enable()
|
||||||
|
|
Loading…
Reference in New Issue