MCPcopy
hub / github.com/crowdsecurity/crowdsec / bucketLogger

Function bucketLogger

pkg/leakybucket/manager_load.go:213–222  ·  view source on GitHub ↗
(f *BucketFactory)

Source from the content-addressed store, hash-verified

211}
212
213func bucketLogger(f *BucketFactory) *log.Entry {
214 fields := log.Fields{"cfg": f.BucketName, "name": f.Spec.Name}
215
216 if f.Spec.Debug {
217 logger := logging.SubLogger(log.StandardLogger(), "scenario", log.DebugLevel)
218 return logger.WithFields(fields)
219 }
220
221 return log.WithFields(fields)
222}
223
224func (f *BucketFactory) parseDurations() error {
225 if f.Spec.LeakSpeed != "" {

Callers 1

LoadBucketMethod · 0.85

Calls 2

SubLoggerFunction · 0.92
StandardLoggerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…