remove redundant logs
This commit is contained in:
@ -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')
|
||||
|
||||
@ -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[] = []
|
||||
|
||||
Reference in New Issue
Block a user