Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix: fix appendSweetenFields bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Apr 18, 2024
1 parent 57ed92a commit 764c89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func formatMessage(template string, fmtArgs []any) string {
// copy from zap(sugar.go)
func (l *Log) appendSweetenFields(fields []Field, args []any) []Field {
if len(args) == 0 {
return nil
return fields
}

var (
Expand Down

0 comments on commit 764c89a

Please sign in to comment.