Skip to content

Commit

Permalink
fix log_debug after jsoniter change.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 17, 2024
1 parent 9cb853d commit 82b8602
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion log_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package nostr

import (
"fmt"

jsoniter "github.com/json-iterator/go"
)

func debugLogf(str string, args ...any) {
Expand All @@ -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:
Expand Down

0 comments on commit 82b8602

Please sign in to comment.