Skip to content

Commit cb87222

Browse files
committed
Log contact form messages for debugging
1 parent 59caf46 commit cb87222

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/src/functions/contact-form.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import nodemailer from 'nodemailer';
2+
import * as log from 'loglevel';
3+
import { delay } from '@httptoolkit/util';
24

35
import { catchErrors, reportError } from '../errors';
4-
import { delay } from '@httptoolkit/util';
56
import { getCorsResponseHeaders } from '../cors';
67

78
const {
@@ -94,6 +95,8 @@ export const handler = catchErrors(async (event) => {
9495
}</body></html>`
9596
});
9697

98+
log.info('Sent contract form email from ' + email);
99+
97100
return {
98101
statusCode: 302,
99102
headers: {

0 commit comments

Comments
 (0)