crowdsec/pkg/csconfig
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
..
tests Alert context (#1895) 2023-01-04 16:50:02 +01:00
api.go fix tls communication with lapi and user/pw auth (#1956) 2022-12-29 22:00:11 +01:00
api_test.go Alert context (#1895) 2023-01-04 16:50:02 +01:00
common.go CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite (#1596) 2022-06-17 16:12:49 +02:00
common_test.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
config.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
config_paths.go Output plugins (#878) 2021-08-25 11:43:29 +02:00
config_test.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
console.go Alert context (#1895) 2023-01-04 16:50:02 +01:00
crowdsec_service.go Alert context (#1895) 2023-01-04 16:50:02 +01:00
crowdsec_service_test.go Alert context (#1895) 2023-01-04 16:50:02 +01:00
cscli.go print cscli usage in color, fix windows terminal detection (#1801) 2022-10-13 12:28:24 +02:00
cscli_test.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
database.go Add postgres socket support, clean some code (#1926) 2022-12-12 16:08:19 +00:00
database_test.go Improve LAPI performance when under high load (#1273) 2022-02-17 17:52:04 +01:00
fflag.go improve feature flag logging (#1986) 2023-01-13 13:42:42 +01:00
hub.go Refactor configuration management (#698) 2021-03-24 18:16:17 +01:00
hub_test.go functional tests, minor refactoring and lint/cleanup (#1570) 2022-06-06 15:24:48 +02:00
plugin_config.go Make plugin runner configurable and run only registered plugins (#944) 2021-09-08 11:36:42 +02:00
profiles.go lint: error handling cleanup (#1877) 2022-11-29 09:16:07 +01:00
prometheus.go Refactor configuration management (#698) 2021-03-24 18:16:17 +01:00
prometheus_test.go Refactor configuration management (#698) 2021-03-24 18:16:17 +01:00
simulation.go fix #1385: .yaml.local (#1497) 2022-05-18 10:08:37 +02:00
simulation_test.go refactor broker_test.go, extract cstest/filenotfound*.go (#1815) 2022-10-17 14:17:23 +02:00