mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-30 16:45:07 +01:00 
			
		
		
		
	Add error handling for Sink.Write
This commit is contained in:
		| @@ -106,7 +106,9 @@ func (sm *sinkManager) Start() { | ||||
| 				// Send received metric to all outputs | ||||
| 				cclog.ComponentDebug("SinkManager", "WRITE", p) | ||||
| 				for _, s := range sm.sinks { | ||||
| 					s.Write(p) | ||||
| 					if err := s.Write(p); err != nil { | ||||
| 						cclog.ComponentError("SinkManager", "WRITE", s.Name(), "write failed:", err.Error()) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user