mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove some places we are logging too much data causing sentry failures
This commit is contained in:
parent
0f540d60ac
commit
8edd94bdb5
2 changed files with 6 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ export const createPubSubClient = (): PubsubClient => {
|
|||
return Promise.resolve()
|
||||
}
|
||||
|
||||
console.log(`Publishing ${topicName}`, msg)
|
||||
return client
|
||||
.topic(topicName)
|
||||
.publishMessage({ data: msg })
|
||||
|
|
@ -126,7 +125,6 @@ const expired = (body: PubSubRequestBody): boolean => {
|
|||
export const readPushSubscription = (
|
||||
req: express.Request
|
||||
): { message: string | undefined; expired: boolean } => {
|
||||
console.log('request query', req.body)
|
||||
if (req.query.token !== process.env.PUBSUB_VERIFICATION_TOKEN) {
|
||||
console.log('query does not include valid pubsub token')
|
||||
return { message: undefined, expired: false }
|
||||
|
|
|
|||
|
|
@ -96,7 +96,12 @@ export function newsletterServiceRouter() {
|
|||
|
||||
const result = await saveNewsletterEmail(data)
|
||||
if (!result) {
|
||||
console.log('Error creating newsletter link from data', data)
|
||||
console.log(
|
||||
'Error creating newsletter link from data',
|
||||
data.email,
|
||||
data.title,
|
||||
data.author
|
||||
)
|
||||
res.status(500).send('Error creating newsletter link')
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue