Disable Stackdriver error reporting until we can clean up the interface

pull/3661/head
Thomas Stromberg 2019-02-12 14:33:38 -08:00
parent 414b8ab9f8
commit ade3515f4f
1 changed files with 8 additions and 0 deletions

View File

@ -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) {