diff options
| author | Agando <roduccomm@gmail.com> | 2026-10-18 17:01:52 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-10-18 17:01:52 +0200 |
| commit | d7a1198aa7ac77cbe9d3f0c844245dd08a8ccd12 (patch) | |
| tree | 0e6851e95a62d05f51966fe29eb784108df0fe4b /modules/core/module-debug-supervisor.js | |
| parent | 824d6cd3c61488c120c0226d1929324f2741fafc (diff) | |
newOS4 v4.6.37: bug-report pipeline (report.php, bug command, HTML generator, telemetry-loop fix)
Diffstat (limited to 'modules/core/module-debug-supervisor.js')
| -rw-r--r-- | modules/core/module-debug-supervisor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/core/module-debug-supervisor.js b/modules/core/module-debug-supervisor.js index fc6a919..ffe08a8 100644 --- a/modules/core/module-debug-supervisor.js +++ b/modules/core/module-debug-supervisor.js @@ -263,6 +263,9 @@ class DebugSupervisorModule { window.fetch = function() { const args = arguments; const url = typeof args[0] === 'string' ? args[0] : (args[0]?.url || '?'); + // Never record failures of the debug-sync endpoint itself: that produced a + // self-referential loop (38,495 identical "Fetch failed …/ingest.php" entries). + if (url.indexOf('/api/debug/') !== -1) return self._originalFetch.apply(window, args); return self._originalFetch.apply(window, args).catch(function(err) { self._recordError('Fetch failed: ' + url + ' — ' + (err.message || err), url, err.stack); throw err; |