Skip to content

Commit a54521e

Browse files
committed
没有stringer的消息, format打印
1 parent 5f5fbc3 commit a54521e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,5 @@ func MessageToString(msg interface{}) string {
300300
return stringer.String()
301301
}
302302

303-
return ""
303+
return fmt.Sprintf("%+v", msg)
304304
}

0 commit comments

Comments
 (0)