Silence yaml patching
authorCyril Brulebois <cyril@debamax.com>
Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)
committerCyril Brulebois <cyril@debamax.com>
Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)
commitf97b33d0a3ed4b8696558809813879f441a0d7f9
treec9bed8184a2e436e0e59cac41e8a379d53399e1e
parent22dce0ee4128deba9ae58cdbb6b399c10dcc93ea
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch
pkg/yamlpatch/patcher.go