Skip to content

Commit 02f4fb3

Browse files
author
remib
committed
WKS-1477 - Print data when we cant parse it
1 parent bb11799 commit 02f4fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/common/cmd_io.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func PrintJson(data []byte) error {
4444

4545
func printJsonOrLogError(data []byte) error {
4646
if _, writeErr := cliOut.Write(PrettifyJson(data)); writeErr != nil {
47-
log.Debug(fmt.Sprintf("Write error: %+v", writeErr))
47+
log.Warn(fmt.Sprintf("Write error: %+v (data:%s)", writeErr, string(data)))
4848
}
4949
return nil
5050
}

0 commit comments

Comments
 (0)