We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb20afc commit 62a525bCopy full SHA for 62a525b
internal/utils/utils.go
@@ -28,6 +28,7 @@ func GetSecret(r *http.Request) (string, bool) {
28
}
29
30
func CloseWithCodeAndMessage(w http.ResponseWriter, code int, message string) {
31
+ slog.Error(message, slog.Int("code", code))
32
w.WriteHeader(code)
33
w.Write([]byte(message))
34
0 commit comments