change log fields #129

Merged
vtolstov merged 1 commits from fix into v3 2024-02-15 10:45:38 +03:00
Showing only changes of commit 4fcbe0a770 - Show all commits

View File

@ -30,7 +30,7 @@ func (l *mlogger) Log(lvl kgo.LogLevel, msg string, args ...interface{}) {
return return
} }
if len(args) > 0 { if len(args) > 0 {
fields := make([]interface{}, len(args)) fields := make([]interface{}, 0, len(args))
for i := 0; i <= len(args)/2; i += 2 { for i := 0; i <= len(args)/2; i += 2 {
fields = append(fields, fmt.Sprintf("%v", args[i]), args[i+1]) fields = append(fields, fmt.Sprintf("%v", args[i]), args[i+1])
} }