lib/api: Always include usage reporting data in support bundle (#7786)

This commit is contained in:
Jakob Borg 2021-06-24 22:00:14 +04:00 committed by GitHub
parent 8040502599
commit 993a3ebe73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1185,7 +1185,7 @@ func (s *service) getSupportBundle(w http.ResponseWriter, r *http.Request) {
}
// Report Data as a JSON
if r, err := s.urService.ReportData(context.TODO()); err != nil {
if r, err := s.urService.ReportDataPreview(r.Context(), ur.Version); err != nil {
l.Warnln("Support bundle: failed to create usage-reporting.json.txt:", err)
} else {
if usageReportingData, err := json.MarshalIndent(r, "", " "); err != nil {