From 99b7881c4ca939d96dfa191b554252dc8e55b1b8 Mon Sep 17 00:00:00 2001
From: jano3 <jano@bob.co.za>
Date: Tue, 10 Dec 2024 07:46:16 +0200
Subject: [PATCH] Add path and method to response logs

---
 logs/logs.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/logs/logs.go b/logs/logs.go
index c901a85..37dd4ff 100644
--- a/logs/logs.go
+++ b/logs/logs.go
@@ -356,6 +356,8 @@ func LogResponseInfo(req events.APIGatewayProxyRequest, res events.APIGatewayPro
 
 	fields := map[string]interface{}{
 		"status_code": res.StatusCode,
+		"path":        req.Path,
+		"method":      req.HTTPMethod,
 	}
 
 	if err != nil {
-- 
GitLab