From 82b8602fa862695ccd5a0b92dea811d810af62f5 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 17 Dec 2024 11:06:05 -0300 Subject: [PATCH] fix log_debug after jsoniter change. --- log_debug.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/log_debug.go b/log_debug.go index 16ef75d..8832351 100644 --- a/log_debug.go +++ b/log_debug.go @@ -4,6 +4,8 @@ package nostr import ( "fmt" + + jsoniter "github.com/json-iterator/go" ) func debugLogf(str string, args ...any) { @@ -26,7 +28,7 @@ func stringify(anything any) any { printableValues[i] = stringify(subv) } return printableValues - case []json.RawMessage: + case []jsoniter.RawMessage: j, _ := json.Marshal(v) return string(j) case []byte: