From 424692179be2b92253a4423b20009897e645412d Mon Sep 17 00:00:00 2001 From: Chris Martin <101210272+ChrisScotMartin@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:57:53 -0400 Subject: [PATCH] don't include Authorization header --- common/logger.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/logger.go b/common/logger.go index 0670e61..a629710 100644 --- a/common/logger.go +++ b/common/logger.go @@ -25,7 +25,9 @@ func ConcatWithRequest(data M, req Request) M { "method": req["method"], } for header, values := range req["headers"].(http.Header) { - kvData[header] = strings.Join(values, ";") + if header != "Authorization" { + kvData[header] = strings.Join(values, ";") + } } for key, val := range data { kvData[key] = val