chore: pretty-print value

This commit is contained in:
andig 2023-02-25 18:42:12 +01:00
parent 5e5c632ed1
commit 1a7690c15c
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import (
"github.com/evcc-io/evcc/util"
"github.com/gorilla/websocket"
"github.com/kr/pretty"
)
const (
@ -121,7 +122,7 @@ func kv(p util.Param) string {
}
if p.Key == "" && val == "" {
log.ERROR.Printf("invalid key/val for %+v %+v, please report to https://github.com/evcc-io/evcc/issues/6439", p, p.Val)
log.ERROR.Printf("invalid key/val for %+v %# v, please report to https://github.com/evcc-io/evcc/issues/6439", p, pretty.Formatter(p.Val))
return "\"foo\":\"bar\""
}