mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
lib/api: Always include usage reporting data in support bundle (#7786)
This commit is contained in:
parent
8040502599
commit
993a3ebe73
@ -1185,7 +1185,7 @@ func (s *service) getSupportBundle(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Report Data as a JSON
|
// 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)
|
l.Warnln("Support bundle: failed to create usage-reporting.json.txt:", err)
|
||||||
} else {
|
} else {
|
||||||
if usageReportingData, err := json.MarshalIndent(r, "", " "); err != nil {
|
if usageReportingData, err := json.MarshalIndent(r, "", " "); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user