Remove unnecessary logging in middleware

Removed an extraneous logging command from the middleware function in the web application. This was redundant and did not contribute to error tracking or debugging, enhancing readability and maintenance of the code.
This commit is contained in:
giancarlo
2024-04-04 00:07:38 +08:00
parent 35ef90b4f8
commit 67763d3e1f

View File

@@ -3,7 +3,6 @@ import { NextResponse, URLPattern } from 'next/server';
import csrf from 'edge-csrf';
import { Logger } from '@kit/shared/logger';
import { checkRequiresMultiFactorAuthentication } from '@kit/supabase/check-requires-mfa';
import { createMiddlewareClient } from '@kit/supabase/middleware-client';
@@ -22,8 +21,6 @@ export const config = {
export async function middleware(request: NextRequest) {
const response = NextResponse.next();
Logger.info({ name: `middleware`, message: `middleware` });
// apply CSRF and session middleware
const csrfResponse = await withCsrfMiddleware(request, response);