+func (v *VespaMgr) SymptomDataHandler(w http.ResponseWriter, r *http.Request) {
+ appConfig, err := ioutil.ReadFile(app.Config.GetString("controls.vesagent.configFile"))
+ if err != nil {
+ app.Logger.Error("Unable to read config file: %v", err)
+ }
+ app.Logger.Info("SymptomDataHandler: appConfig=%+v", string(appConfig))
+
+ baseDir := app.Resource.CollectDefaultSymptomData("app-config.json", appConfig)
+ if baseDir != "" {
+ app.Resource.SendSymptomDataFile(w, r, baseDir, "symptomdata.zip")
+ }
+}
+