File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ func (a *App) Run() {
240
240
}
241
241
242
242
func (a * App ) hasTelemetry () bool {
243
- return a .Config .GetOrDefault ("GOFR_TELEMETRY" , "true" ) == defaultTelemetry
243
+ return a .Config .GetOrDefault ("GOFR_TELEMETRY" , defaultTelemetry ) == "true"
244
244
}
245
245
246
246
func (a * App ) sendTelemetry (client * http.Client , s string ) {
@@ -264,14 +264,10 @@ func (a *App) sendTelemetry(client *http.Client, s string) {
264
264
265
265
resp , err := client .Do (req )
266
266
if err != nil {
267
- a .container .Errorf ("Failed to send telemetry: %v" , err )
268
267
return
269
268
}
270
269
271
- err = resp .Body .Close ()
272
- if err != nil {
273
- a .container .Errorf ("Failed to close telemetry response: %v" , err )
274
- }
270
+ resp .Body .Close ()
275
271
}
276
272
277
273
// Shutdown stops the service(s) and close the application.
You can’t perform that action at this time.
0 commit comments