mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +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
|
@ -149,9 +149,7 @@ func TestStreamingAcquisition(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
subLogger := log.WithFields(log.Fields{
|
||||
"type": "kafka",
|
||||
})
|
||||
subLogger := log.WithField("type", "kafka")
|
||||
|
||||
createTopic("crowdsecplaintext", "localhost:9092")
|
||||
|
||||
|
@ -222,9 +220,7 @@ func TestStreamingAcquisitionWithSSL(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
subLogger := log.WithFields(log.Fields{
|
||||
"type": "kafka",
|
||||
})
|
||||
subLogger := log.WithField("type", "kafka")
|
||||
|
||||
createTopic("crowdsecssl", "localhost:9092")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue