chore: pretty-print value
This commit is contained in:
parent
5e5c632ed1
commit
1a7690c15c
2 changed files with 4 additions and 1 deletions
|
|
@ -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\""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue