refactor: prefer logrus.WithField over WithFields with a single param (#3087)

This commit is contained in:
mmetc 2024-06-20 10:38:23 +02:00 committed by GitHub
parent 4521a98ecc
commit 659774fd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 57 additions and 150 deletions

View file

@ -42,9 +42,7 @@ func TestDateParse(t *testing.T) {
},
}
logger := log.WithFields(log.Fields{
"test": "test",
})
logger := log.WithField("test", "test")
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {