This commit is contained in:
Michael Schramm 2022-01-03 08:39:41 +01:00
parent 9f919f2daf
commit 1b886fa467
3 changed files with 11 additions and 4 deletions

View File

@ -32,8 +32,6 @@ export class SubmissionStartMutation {
throw new Error('invalid form')
}
console.log('user', user)
const submission = await this.startService.start(form, input, user, ipAddr)
cache.add(cache.getCacheKey(SubmissionEntity.name, submission.id), submission)

View File

@ -27,7 +27,11 @@ export class SubmissionHookService {
this.format(submission, hook.format)
))
console.log('sent hook', response.data)
this.logger.info({
submission: submission.id,
form: submission.formId,
webhook: hook.url,
}, 'sent hook')
} catch (e) {
this.logger.error({
submission: submission.id,

View File

@ -54,7 +54,12 @@ export class SubmissionNotificationService {
html,
text: htmlToText.htmlToText(html),
})
console.log('sent notification to', to)
this.logger.info({
form: submission.formId,
submission: submission.id,
notification: notification.id,
}, 'sent notification')
} catch (e) {
this.logger.error({
form: submission.formId,