From: Cyril Brulebois Date: Wed, 1 Mar 2023 22:58:00 +0000 (+0100) Subject: Silence “Crowdsec is not the latest version” messages. X-Git-Tag: archive/raspbian/1.4.6-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cd28b41a2be712c93319bdf98ee0b9439866c1a3;p=crowdsec.git Silence “Crowdsec is not the latest version” messages. We're shipping crowdsec in a stable Debian release, which isn't quite compatible with a “latest and greatest” approach. :) Upstream maintains a hub branch for the version we ship in stable anyway. Gbp-Pq: Name 0015-silence-not-latest-version.patch --- diff --git a/pkg/cwhub/helpers.go b/pkg/cwhub/helpers.go index 31f6008..a5b5955 100644 --- a/pkg/cwhub/helpers.go +++ b/pkg/cwhub/helpers.go @@ -35,11 +35,6 @@ func chooseHubBranch() (string, error) { return "master", nil } - log.Warnf("Crowdsec is not the latest version. "+ - "Current version is '%s' and the latest stable version is '%s'. Please update it!", - csVersion, latest) - log.Warnf("As a result, you will not be able to use parsers/scenarios/collections "+ - "added to Crowdsec Hub after CrowdSec %s", latest) return csVersion, nil }