[grade=A] DC-065: Sweep 15 console.* calls to process.stderr.write
CI / Test & Lint (push) Canceled after 0s
CI / Security audit (push) Canceled after 0s

Replace all non-logger console.error/warn calls with process.stderr.write
using tagged prefixes ([AuditLogger], [CSRF], [DNS Registry], etc.) for
grep-ability. All in fallback/catch paths where structured logger may be
unavailable. Test updated to use jest.spyOn with try/finally for clean
mock restoration.

Codex grade: pass (22,402 tokens). All 1539 tests pass.
This commit is contained in:
Hermes
2026-08-12 04:50:16 -07:00
parent a1d7208686
commit 92482980dd
10 changed files with 26 additions and 30 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ async function getStorageInfo() {
: 0;
}
} catch (error) {
console.error('[BackupsRouter] Error getting storage info:', error.message);
process.stderr.write(`[BackupsRouter] Error getting storage info: ${error.message}\n`);
}
return result;