diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-07-07 11:44:48 -0400 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2025-07-27 17:57:30 +0100 |
| commit | bf455c2f7a3122ab72bf7ef7498d758936b1db91 (patch) | |
| tree | d9d24f37d409a0a78a09e8c31995138861466b46 /packages/backend | |
| parent | add workarounds for node-fetch crashes (diff) | |
| download | sharkey-bf455c2f7a3122ab72bf7ef7498d758936b1db91.tar.gz sharkey-bf455c2f7a3122ab72bf7ef7498d758936b1db91.tar.bz2 sharkey-bf455c2f7a3122ab72bf7ef7498d758936b1db91.zip | |
use logger instead of console for uncaughtException debug lines
Diffstat (limited to '')
| -rw-r--r-- | packages/backend/src/boot/entry.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/boot/entry.ts b/packages/backend/src/boot/entry.ts index af4a813833..530c75cc8e 100644 --- a/packages/backend/src/boot/entry.ts +++ b/packages/backend/src/boot/entry.ts @@ -66,13 +66,13 @@ async function main() { process.on('uncaughtException', (err) => { // Workaround for https://github.com/node-fetch/node-fetch/issues/954 if (String(err).match(/^TypeError: .+ is an? url with embedded credentials.$/)) { - console.debug('Suppressed node-fetch issue#954, but the current job may fail.'); + logger.debug('Suppressed node-fetch issue#954, but the current job may fail.'); return; } // Workaround for https://github.com/node-fetch/node-fetch/issues/1845 if (String(err) === 'TypeError: Cannot read properties of undefined (reading \'body\')') { - console.debug('Suppressed node-fetch issue#1845, but the current job may fail.'); + logger.debug('Suppressed node-fetch issue#1845, but the current job may fail.'); return; } |