From ade3515f4fa4bac2acf40b93ebee3551b1ff92fd Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Tue, 12 Feb 2019 14:33:38 -0800 Subject: [PATCH] Disable Stackdriver error reporting until we can clean up the interface --- cmd/util/util.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/util/util.go b/cmd/util/util.go index fcd327a892..007a0bd520 100644 --- a/cmd/util/util.go +++ b/cmd/util/util.go @@ -132,7 +132,15 @@ func MaybeReportErrorAndExit(errToReport error) { // MaybeReportErrorAndExitWithCode prompts the user if they would like to report a stack trace, and exits. func MaybeReportErrorAndExitWithCode(errToReport error, returnCode int) { + // TODO(#3623,3178): Replace with maybeReportErrorAndExitWithCode once StackDriver integration is improved. + glog.Infof("Error reporting is disabled in this release of minikube") + os.Exit(returnCode) +} + +// maybeReportErrorAndExitWithCode is deadcode +func maybeReportErrorAndExitWithCode(errToReport error, returnCode int) { var err error + if viper.GetBool(config.WantReportError) { err = ReportError(errToReport, constants.ReportingURL) } else if viper.GetBool(config.WantReportErrorPrompt) {