From 3146b3bcc5d6245130e7a6122775e1360853c2b5 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 27 Jul 2023 17:55:17 +0800 Subject: [PATCH] remove redundant logs --- packages/content-handler/src/content-handler.ts | 2 +- packages/text-to-speech/src/htmlToSsml.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/content-handler/src/content-handler.ts b/packages/content-handler/src/content-handler.ts index ae3a81636..9fef1ffe8 100644 --- a/packages/content-handler/src/content-handler.ts +++ b/packages/content-handler/src/content-handler.ts @@ -160,7 +160,7 @@ export abstract class ContentHandler { html, headers, }: NewsletterInput): Promise { - 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') diff --git a/packages/text-to-speech/src/htmlToSsml.ts b/packages/text-to-speech/src/htmlToSsml.ts index 686c47800..125bd333d 100644 --- a/packages/text-to-speech/src/htmlToSsml.ts +++ b/packages/text-to-speech/src/htmlToSsml.ts @@ -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[] = []