From 13b543b611f63577a5fb3d7f939ec7798f790158 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Tue, 27 Jan 2026 14:20:10 -0500 Subject: [PATCH] Fix `LogTraceParams.Verbose` type Fixes #57. --- general.go | 2 +- general_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/general.go b/general.go index 1693b0cc..db09bec6 100644 --- a/general.go +++ b/general.go @@ -104,7 +104,7 @@ type LogTraceParams struct { // Verbose is the additional information that can be computed if the "trace" configuration // is set to "verbose". - Verbose TraceValue `json:"verbose,omitempty"` + Verbose string `json:"verbose,omitempty"` } // SetTraceParams params of SetTrace notification. diff --git a/general_test.go b/general_test.go index f62b772b..ce0c6a76 100644 --- a/general_test.go +++ b/general_test.go @@ -341,12 +341,12 @@ func TestLogTraceParams(t *testing.T) { t.Parallel() const ( - want = `{"message":"testMessage","verbose":"verbose"}` + want = `{"message":"testMessage","verbose":"testVerbose"}` wantNil = `{"message":"testMessage"}` ) wantType := LogTraceParams{ Message: "testMessage", - Verbose: TraceVerbose, + Verbose: "testVerbose", } wantTypeNil := LogTraceParams{ Message: "testMessage",