zero out new metrics on error
This commit is contained in:
parent
abb57a7ae9
commit
016465aaa9
3
main.go
3
main.go
@ -88,6 +88,9 @@ func errLog(err error) {
|
|||||||
opsZPosition.Set(0)
|
opsZPosition.Set(0)
|
||||||
opsBed.Set(0)
|
opsBed.Set(0)
|
||||||
opsNozzle.Set(0)
|
opsNozzle.Set(0)
|
||||||
|
opsProgress.Set(0)
|
||||||
|
opsDuration.Set(0)
|
||||||
|
opsRemaining.Set(0)
|
||||||
if errCount == 5 {
|
if errCount == 5 {
|
||||||
log.Printf("suppressing further error logging")
|
log.Printf("suppressing further error logging")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user