We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1582e7 commit ce6f4faCopy full SHA for ce6f4fa
cli/daemon/daemon.go
@@ -103,9 +103,8 @@ func runDaemonCommand(cmd *cobra.Command, args []string) {
103
go func() {
104
// Stdin is closed when the controlling parent process ends
105
_, _ = io.Copy(ioutil.Discard, os.Stdin)
106
- if viper.GetBool("telemetry.enabled") {
107
- stats.Flush()
108
- }
+ // Flush telemetry stats (this is a no-op if telemetry is disabled)
+ stats.Flush()
109
os.Exit(0)
110
}()
111
}
0 commit comments