diff --git a/.eslintrc.js b/.eslintrc.js index 2d024fa..fef7fc3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,6 +23,7 @@ module.exports = { sourceType: 'module', }, rules: { + 'no-console': ['error'], 'no-unused-vars': ['error', { destructuredArrayIgnorePattern: '^_' }], }, }; diff --git a/src/handlers.js b/src/handlers.js index 321fec6..9b3484c 100644 --- a/src/handlers.js +++ b/src/handlers.js @@ -45,6 +45,7 @@ export const handler = async ({ env, request }) => { response = await postApiNotify({ env, request }); } response = response ?? notFound(); + // eslint-disable-next-line no-console console.log(`${request.method} ${pathname} ${response.status} ${userAgent}`); return response; };