remove redundant logs

This commit is contained in:
Hongbo Wu
2023-07-27 17:55:17 +08:00
parent 2e965afd69
commit 3146b3bcc5
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ export abstract class ContentHandler {
html,
headers,
}: NewsletterInput): Promise<NewsletterResult> {
console.log('handleNewsletter', from, to, subject, headers, from)
console.log('handleNewsletter', from, to, subject, headers)
if (!from || !html || !subject || !to) {
console.log('invalid newsletter email')

View File

@ -298,9 +298,9 @@ const textToUtterances = ({
try {
text = htmlToText(text, { wordwrap: false })
} catch (err) {
console.error('Unable to convert HTML to text, html:')
console.error('Unable to convert HTML to text')
text = parseHTML(text).document.documentElement.textContent ?? text
console.info('Converted HTML to text:', text)
console.info('Converted HTML to text')
}
const MAX_CHARS = 256
let sentences: string[] = []