Skip to content

Commit

Permalink
only writing json object to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyume committed Jan 13, 2022
1 parent 2d57b31 commit 83f21eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/send-reminders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const client = new Twilio(process.env.TWILIO_ACCOUNT_SID || '', process.env.TWIL
logger.info(JSON.stringify(options), { metadata: {
service: `send-reminders.ts`,
instance,
reminder,
reminder: reminder.toJSON(),
}});
await client.messages.create(options);

Expand All @@ -97,7 +97,7 @@ const client = new Twilio(process.env.TWILIO_ACCOUNT_SID || '', process.env.TWIL
logger.error(ex, { metadata: {
service: `send-reminders.ts`,
instance,
reminder,
reminder: reminder.toJSON(),
}});
}
}
Expand Down

0 comments on commit 83f21eb

Please sign in to comment.