fix log_debug after jsoniter change.

This commit is contained in:
fiatjaf 2024-12-17 11:06:05 -03:00
parent 9cb853d6b1
commit 82b8602fa8

View File

@ -4,6 +4,8 @@ package nostr
import ( import (
"fmt" "fmt"
jsoniter "github.com/json-iterator/go"
) )
func debugLogf(str string, args ...any) { func debugLogf(str string, args ...any) {
@ -26,7 +28,7 @@ func stringify(anything any) any {
printableValues[i] = stringify(subv) printableValues[i] = stringify(subv)
} }
return printableValues return printableValues
case []json.RawMessage: case []jsoniter.RawMessage:
j, _ := json.Marshal(v) j, _ := json.Marshal(v)
return string(j) return string(j)
case []byte: case []byte: