From c9dfca622f9dc0b4426f74560a8b419e6fcea306 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 8 Jun 2026 14:58:29 +0200 Subject: [PATCH] Update cclog calls in latest IB Collector --- collectors/infinibandMetric.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/collectors/infinibandMetric.go b/collectors/infinibandMetric.go index 0d15311..cf28728 100644 --- a/collectors/infinibandMetric.go +++ b/collectors/infinibandMetric.go @@ -225,9 +225,9 @@ func (m *InfinibandCollector) Read(interval time.Duration, output chan lp.CCMess // Read counter file line, err := os.ReadFile(counterDef.path) if err != nil { - cclog.ComponentError( + cclog.ComponentErrorf( m.name, - fmt.Sprintf("Read(): Failed to read from file '%s': %v", counterDef.path, err)) + "Read(): Failed to read from file '%s': %v", counterDef.path, err) // Current counter can not be saved as last state counterDef.lastStateAvailable = false continue @@ -237,9 +237,9 @@ func (m *InfinibandCollector) Read(interval time.Duration, output chan lp.CCMess // convert counter to uint64 vRawCounter, err := strconv.ParseUint(data, 10, 64) if err != nil { - cclog.ComponentError( + cclog.ComponentErrorf( m.name, - fmt.Sprintf("Read(): Failed to convert Infininiband metrice %s='%s' to uint64: %v", counterDef.name, data, err)) + "Read(): Failed to convert Infininiband metrice %s='%s' to uint64: %v", counterDef.name, data, err) // Current counter can not be saved as last state counterDef.lastStateAvailable = false continue