mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
fix log_debug after jsoniter change.
This commit is contained in:
parent
9cb853d6b1
commit
82b8602fa8
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user