diff --git a/backend/src/common/middlewares/http-logger.middleware.ts b/backend/src/common/middlewares/http-logger.middleware.ts index 42dda4b..f42538a 100644 --- a/backend/src/common/middlewares/http-logger.middleware.ts +++ b/backend/src/common/middlewares/http-logger.middleware.ts @@ -16,7 +16,9 @@ export class HTTPLoggerMiddleware implements NestMiddleware { const contentLength = response.get("content-length"); const duration = Date.now() - startTime; - const hashedIp = createHash("sha256").update(ip as string).digest("hex"); + const hashedIp = createHash("sha256") + .update(ip as string) + .digest("hex"); const message = `${method} ${originalUrl} ${statusCode} ${contentLength || 0} - ${userAgent} ${hashedIp} +${duration}ms`; if (statusCode >= 500) {