Skip to content

Commit

Permalink
eslint error console
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Mar 20, 2024
1 parent facd6a1 commit 9973e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
sourceType: 'module',
},
rules: {
'no-console': ['error'],
'no-unused-vars': ['error', { destructuredArrayIgnorePattern: '^_' }],
},
};
1 change: 1 addition & 0 deletions src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 9973e58

Please sign in to comment.