mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Removed logging.
This commit is contained in:
parent
936b7db1e2
commit
090abcff81
1 changed files with 0 additions and 10 deletions
|
|
@ -86,16 +86,6 @@ const schema = {
|
|||
export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
||||
await useCors(req, res);
|
||||
|
||||
req.socket.on('close', () => {
|
||||
console.log('Client closed connection');
|
||||
});
|
||||
|
||||
const abortController = new AbortController();
|
||||
req.on('close', () => {
|
||||
console.log('Request closed');
|
||||
abortController.abort();
|
||||
});
|
||||
|
||||
if (req.method === 'POST') {
|
||||
if (!process.env.DISABLE_BOT_CHECK && isbot(req.headers['user-agent'])) {
|
||||
return ok(res, { beep: 'boop' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue