Skip to content

Commit

Permalink
remove duplicate level
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaGolomozy committed Apr 8, 2024
1 parent 866451e commit 759c18c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions slog_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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(),
}

Expand Down

0 comments on commit 759c18c

Please sign in to comment.