fix: Errorv should generate JSON Object for content field in log (#3222)

Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
soasurs
2023-05-08 17:16:44 +08:00
committed by GitHub
parent 2684a157ff
commit 8762a3b7ba
3 changed files with 46 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ func (l *richLogger) Errorf(format string, v ...any) {
}
func (l *richLogger) Errorv(v any) {
l.err(fmt.Sprint(v))
l.err(v)
}
func (l *richLogger) Errorw(msg string, fields ...LogField) {