Skip to content

Commit c783032

Browse files
committed
remove writing telemetry events to the log file
1 parent 9daf6d3 commit c783032

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cni/telemetry/client/telemetry_client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ func (c *TelemetryClient) sendLog(msg string) {
9393
}
9494

9595
func (c *TelemetryClient) SendEvent(msg string) {
96-
c.sendLog(msg)
9796
c.sendEvent(msg)
9897
}
9998

@@ -113,6 +112,6 @@ func (c *TelemetryClient) SendMetric(cniMetric *telemetry.AIMetric) {
113112
}
114113
err := telemetry.SendCNIMetric(cniMetric, c.tb)
115114
if err != nil {
116-
c.logger.Error("Couldn't send metric", zap.Error(err))
115+
c.sendLog("Couldn't send metric: " + err.Error())
117116
}
118117
}

0 commit comments

Comments
 (0)