From 759c18cbcec33a0cc9c4b8ed357791b148e42158 Mon Sep 17 00:00:00 2001 From: dimagolomozy Date: Mon, 8 Apr 2024 13:34:34 +0300 Subject: [PATCH] remove duplicate level --- slog_handler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/slog_handler.go b/slog_handler.go index 83ba1e8..e078ac5 100644 --- a/slog_handler.go +++ b/slog_handler.go @@ -24,7 +24,6 @@ type source struct { type logMessage struct { Message string `json:"message"` - Level string `json:"level"` Data map[string]any `json:"data,omitempty"` Source source `json:"source,omitempty"` } @@ -58,7 +57,6 @@ func (h *CoralogixHandler) Handle(ctx context.Context, r slog.Record) error { log := logMessage{ Message: r.Message, - Level: r.Level.String(), Data: h.cloneData(), }