zero out new metrics on error

This commit is contained in:
David 2022-04-18 20:18:47 -04:00
parent abb57a7ae9
commit 016465aaa9
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ func errLog(err error) {
opsZPosition.Set(0)
opsBed.Set(0)
opsNozzle.Set(0)
opsProgress.Set(0)
opsDuration.Set(0)
opsRemaining.Set(0)
if errCount == 5 {
log.Printf("suppressing further error logging")
return