Skip to content

Commit

Permalink
To ensure telemetry is only enabled when both conditions are met
Browse files Browse the repository at this point in the history
  • Loading branch information
Carpe-Wang committed May 17, 2024
1 parent 626343c commit 8b6b434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/retina/main_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {
opts := log.GetDefaultLogOpts()

// Enable telemetry if applicationInsightsID is provided
if applicationInsightsID != "" {
if applicationInsightsID != "" && enableTelemetry {

Check failure on line 26 in init/retina/main_linux.go

View workflow job for this annotation

GitHub Actions / Lint (linux, amd64)

undefined: enableTelemetry (typecheck)
opts.EnableTelemetry = true
opts.ApplicationInsightsID = applicationInsightsID
// Initialize application insights
Expand Down

0 comments on commit 8b6b434

Please sign in to comment.