crowdsec/pkg
mmetc 51800132cd
improve feature flag logging (#1986)
For cscli: it should provide a terse output, not nag users with configuration details. Although it's usually important that cscli and crowdsec have the same enabled features, having it list them every time the command is invoked can be too much.

For crowdsec: when features are set from the environment, it's too early to log where we should. So we can use log.Debug at activation time, and list them again once logging is configured.

 - wrap some functions in csconfig for convenience and DRY
 - for each enabled feature, log.Debug
 - log all enabled features once as Info (crowdsec) or Debug (cscli)
 - file does not exist -> log.Trace
2023-01-13 13:42:42 +01:00
..
acquisition fix flaky parser unit test (#1985) 2023-01-12 17:03:25 +01:00
alertcontext Alert context (#1895) 2023-01-04 16:50:02 +01:00
apiclient log the request error even in case of retry (#1988) 2023-01-13 12:58:12 +01:00
apiserver Alert context (#1895) 2023-01-04 16:50:02 +01:00
cache Allow parsers to capture data for future enrichment (#1969) 2023-01-11 15:01:02 +01:00
csconfig improve feature flag logging (#1986) 2023-01-13 13:42:42 +01:00
csplugin Add Kubernetes audit acquisition (#1767) 2022-12-06 13:47:29 +01:00
csprofiles unit tests: always capture testcase variable -> allow parallel testing (#1797) 2022-10-10 10:48:26 +02:00
cstest feature flags (#1933) 2022-12-20 16:11:51 +01:00
cwhub lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
cwversion refactor: use runtime rather than ldflags for go details (#1302) 2022-03-14 11:29:34 +01:00
database Add postgres socket support, clean some code (#1926) 2022-12-12 16:08:19 +00:00
exprhelpers Allow parsers to capture data for future enrichment (#1969) 2023-01-11 15:01:02 +01:00
fflag improve feature flag logging (#1986) 2023-01-13 13:42:42 +01:00
hubtest Improve warnings around lack of evt.StrTime field (#1954) 2022-12-29 15:03:32 +01:00
leakybucket Add conditional bucket (#1962) 2023-01-06 09:26:16 +01:00
metabase lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
models Alert context (#1895) 2023-01-04 16:50:02 +01:00
parser Allow parsers to capture data for future enrichment (#1969) 2023-01-11 15:01:02 +01:00
protobufs Add plugin interface code in protobufs package (#921) 2021-08-31 14:40:17 +02:00
time Windows Support (#1159) 2022-05-17 12:14:59 +02:00
types Allow parsers to capture data for future enrichment (#1969) 2023-01-11 15:01:02 +01:00
yamlpatch silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00