Browse Source

zero out new metrics on error

master
David Ashby 2 months ago
parent
commit
016465aaa9
  1. 3
      main.go

3
main.go

@ -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

Loading…
Cancel
Save