D
Deno

help

Silence error logs on Oak server

SSkepticMystic10/17/2022
I'm trying to silence specific errors on an Oak server on Deploy. A Github issue said to add an 'error' event listener to the app. I did the following, but the error is still logged. Am I missing something?
app.addEventListener('error', (e) => {
const lowerMsg = e.error?.message?.toLowerCase();
if (lowerMsg?.includes('early eof')) { return }
console.error(e.error);
})
app.addEventListener('error', (e) => {
const lowerMsg = e.error?.message?.toLowerCase();
if (lowerMsg?.includes('early eof')) { return }
console.error(e.error);
})
UUUnknown User11/26/2022
2 Messages Not Public
Sign In & Join Server To View
SSkepticMystic11/26/2022
I have not found a solution, unfortunately
UUUnknown User11/26/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!