diff --git a/.replit b/.replit index 7b00032..ca8fa0e 100644 --- a/.replit +++ b/.replit @@ -26,6 +26,10 @@ externalPort = 3000 localPort = 43245 externalPort = 3001 +[[ports]] +localPort = 46341 +externalPort = 3003 + [env] PORT = "5000" diff --git a/attached_assets/image_1759576969932.png b/attached_assets/image_1759576969932.png new file mode 100644 index 0000000..8e5a772 Binary files /dev/null and b/attached_assets/image_1759576969932.png differ diff --git a/server/index.ts b/server/index.ts index 19731a6..0b1ff63 100644 --- a/server/index.ts +++ b/server/index.ts @@ -58,6 +58,11 @@ app.use((req, res, next) => { res.on("finish", () => { const duration = Date.now() - start; if (path.startsWith("/api")) { + // Ne pas logger les 401 sur /api/auth/session (vérification normale de session) + if (path === "/api/auth/session" && res.statusCode === 401) { + return; + } + let logLine = `${req.method} ${path} ${res.statusCode} in ${duration}ms`; if (capturedJsonResponse) { logLine += ` :: ${JSON.stringify(capturedJsonResponse)}`;