Merge pull request #26 from R0m1k3/dev

Dev
This commit is contained in:
LogiFlow authored and GitHub committed 2025-10-04 14:01:39 +02:00
commit 69b720df22
3 files changed
+9

No files matched your search

+4
View File
@@ -26,6 +26,10 @@ externalPort = 3000
localPort = 43245
externalPort = 3001
[[ports]]
localPort = 46341
externalPort = 3003
[env]
PORT = "5000"
Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

+5
View File
@@ -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)}`;