diff --git a/lib/client/helpers/log.ts b/lib/client/helpers/log.ts index 3b85b76ee..c3bbdb7f9 100644 --- a/lib/client/helpers/log.ts +++ b/lib/client/helpers/log.ts @@ -89,16 +89,20 @@ const logger = { console.log(''); } - if (err && isDev) { + if (err) { console.trace(err); - PostToHook(`\`\`\`${err}\`\`\``); + if (!isDev) { + PostToHook(`\`\`\`${err}\`\`\``); + } } else { console.trace(args); } - if (isDev && typeof window === 'undefined') { - serverError(args); - } + // if (isDev && typeof window === 'undefined') { + // serverError(args); + // } + + serverError(args); }, };