Skip to content

Commit 2245cff

Browse files
committed
fix log on ai telemetry handle create error
1 parent eb059cb commit 2245cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cni/telemetry/service/telemetrymain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ func main() {
167167
GetEnvRetryWaitTimeInSecs: config.GetEnvRetryWaitTimeInSecs,
168168
}
169169

170-
if tb.CreateAITelemetryHandle(aiConfig, config.DisableAll, config.DisableTrace, config.DisableMetric) != nil {
171-
logger.Error("AI Handle creation error", zap.Error(err))
170+
if aiCreationErr := tb.CreateAITelemetryHandle(aiConfig, config.DisableAll, config.DisableTrace, config.DisableMetric); aiCreationErr != nil {
171+
logger.Error("AI Handle creation error:", zap.Error(aiCreationErr))
172172
}
173173
logger.Info("Report to host interval", zap.Duration("seconds", config.ReportToHostIntervalInSeconds))
174174
tb.PushData(context.Background())

0 commit comments

Comments
 (0)