mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
refactor: prefer logrus.WithField over WithFields with a single param (#3087)
This commit is contained in:
parent
4521a98ecc
commit
659774fd3d
25 changed files with 57 additions and 150 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue