diff --git a/cmd/lakectl/cmd/root.go b/cmd/lakectl/cmd/root.go index 57c65a8c608..a4f5eec261a 100644 --- a/cmd/lakectl/cmd/root.go +++ b/cmd/lakectl/cmd/root.go @@ -463,7 +463,7 @@ func sendStats(cmd *cobra.Command, cmdSuffix string) { errStr = resp.Status() } if errStr != "" { - _, _ = fmt.Fprintf(os.Stderr, "Warning: failed sending statistics: %s\n", errStr) + logging.ContextUnavailable().Debugf("Warning: failed sending statistics: %s\n", errStr) } } }