dev #14

Merged
Mathis merged 13 commits from dev into prod 2026-01-20 10:12:18 +01:00
Showing only changes of commit 2df45af305 - Show all commits

View File

@@ -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) {