zero out new metrics on error
This commit is contained in:
		
							
								
								
									
										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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user