From 44ab847d56ffda3add12d10a4153cc50213990d8 Mon Sep 17 00:00:00 2001 From: Jaeryn Chu Date: Tue, 11 Sep 2018 11:56:49 -0700 Subject: [PATCH] Removing CNI specific logging from generic SendReport function. --- telemetry/telemetry.go | 2 +- telemetry/telemetry_windows.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/telemetry/telemetry.go b/telemetry/telemetry.go index b554d74ee7..c2364a7c58 100644 --- a/telemetry/telemetry.go +++ b/telemetry/telemetry.go @@ -228,7 +228,7 @@ func (reportMgr *ReportManager) SendReport() error { if resp.StatusCode == 400 { return fmt.Errorf(`"[Telemetry] HTTP Post returned statuscode %d. This error happens because telemetry service is not yet activated. - The error can be ignored as it won't affect CNI functionality"`, resp.StatusCode) + The error can be ignored as it won't affect functionality"`, resp.StatusCode) } return fmt.Errorf("[Telemetry] HTTP Post returned statuscode %d", resp.StatusCode) diff --git a/telemetry/telemetry_windows.go b/telemetry/telemetry_windows.go index 717ae55b76..cf03ae3e14 100644 --- a/telemetry/telemetry_windows.go +++ b/telemetry/telemetry_windows.go @@ -33,3 +33,8 @@ func (report *CNIReport) GetSystemDetails() { func (report *CNIReport) GetOSDetails() { report.OSDetails = &OSInfo{OSType: runtime.GOOS} } + +// Get kernel version +func (reportMgr *ReportManager) GetKernelVersion() { + // stub +}