MCPcopy Index your code
hub / github.com/syncthing/syncthing / getSystemDebug

Method getSystemDebug

lib/api/api.go:727–732  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

725}
726
727func (*service) getSystemDebug(w http.ResponseWriter, _ *http.Request) {
728 sendJSON(w, map[string]any{
729 "packages": slogutil.PackageDescrs(),
730 "levels": slogutil.PackageLevels(),
731 })
732}
733
734func (*service) postSystemDebug(w http.ResponseWriter, r *http.Request) {
735 var levelRequest map[string]slog.Level

Callers

nothing calls this directly

Calls 3

PackageDescrsFunction · 0.92
PackageLevelsFunction · 0.92
sendJSONFunction · 0.85

Tested by

no test coverage detected