Skip to content

Commit 6b3da46

Browse files
jaer-tsunashvindeodhar
authored andcommitted
Removing CNI specific logging from generic SendReport function. (#244)
1 parent f4b25f5 commit 6b3da46

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

telemetry/telemetry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func (reportMgr *ReportManager) SendReport() error {
228228
if resp.StatusCode == 400 {
229229
return fmt.Errorf(`"[Telemetry] HTTP Post returned statuscode %d.
230230
This error happens because telemetry service is not yet activated.
231-
The error can be ignored as it won't affect CNI functionality"`, resp.StatusCode)
231+
The error can be ignored as it won't affect functionality"`, resp.StatusCode)
232232
}
233233

234234
return fmt.Errorf("[Telemetry] HTTP Post returned statuscode %d", resp.StatusCode)

telemetry/telemetry_windows.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ func (report *CNIReport) GetSystemDetails() {
3333
func (report *CNIReport) GetOSDetails() {
3434
report.OSDetails = &OSInfo{OSType: runtime.GOOS}
3535
}
36+
37+
// Get kernel version
38+
func (reportMgr *ReportManager) GetKernelVersion() {
39+
// stub
40+
}

0 commit comments

Comments
 (0)