Skip to content

Commit 0c6d720

Browse files
committed
add more logs for sending surveys
1 parent feb14c0 commit 0c6d720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/SurveyService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ async function sendSurveys () {
119119
collector.contacts
120120
)
121121
await sendSurveyAPI(collector.collectorId, collector.messageId)
122+
logger.debug({ component: 'SurveyService', context: 'sendSurvey', message: `Sent survey for collector "${collectorName}" details:` + JSON.stringify(collector) })
122123
for (const workPeriodId of collectors[collectorName].workPeriodIds) {
123124
try {
124125
await partiallyUpdateWorkPeriod(currentUser, workPeriodId, { sentSurvey: true })

0 commit comments

Comments
 (0)