From 8074a233e8299269c8282eb346e88c26624e406f Mon Sep 17 00:00:00 2001 From: AlteredCoder <64792091+AlteredCoder@users.noreply.github.com> Date: Fri, 22 Apr 2022 11:29:55 +0200 Subject: [PATCH] Fix typo in cscli metrics and debug message (#1473) * Fix typo in cscli metrics and debug message --- cmd/crowdsec-cli/metrics.go | 2 +- cmd/crowdsec/pour.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/crowdsec-cli/metrics.go b/cmd/crowdsec-cli/metrics.go index 2ac6278ad..497f4fcfc 100644 --- a/cmd/crowdsec-cli/metrics.go +++ b/cmd/crowdsec-cli/metrics.go @@ -269,7 +269,7 @@ func ShowPrometheus(url string) { log.Warningf("while collecting acquis stats : %s", err) } bucketsTable := tablewriter.NewWriter(os.Stdout) - bucketsTable.SetHeader([]string{"Bucket", "Current Count", "Overflows", "Instanciated", "Poured", "Expired"}) + bucketsTable.SetHeader([]string{"Bucket", "Current Count", "Overflows", "Instantiated", "Poured", "Expired"}) keys = []string{"curr_count", "overflow", "instanciation", "pour", "underflow"} if err := metricsToTable(bucketsTable, buckets_stats, keys); err != nil { log.Warningf("while collecting acquis stats : %s", err) diff --git a/cmd/crowdsec/pour.go b/cmd/crowdsec/pour.go index e7f1be1a5..9b61b1b38 100644 --- a/cmd/crowdsec/pour.go +++ b/cmd/crowdsec/pour.go @@ -23,7 +23,7 @@ func runPour(input chan types.Event, holders []leaky.BucketFactory, buckets *lea case parsed := <-input: count++ if count%5000 == 0 { - log.Warningf("%d existing LeakyRoutine", leaky.LeakyRoutineCount) + log.Infof("%d existing buckets", leaky.LeakyRoutineCount) //when in forensics mode, garbage collect buckets if cConfig.Crowdsec.BucketsGCEnabled { if parsed.MarshaledTime != "" {