crowdsec/cmd/crowdsec
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
..
api.go add -error flag to crowdsec binary (#1903) 2022-12-03 08:56:11 +01:00
crowdsec.go Alert context (#1895) 2023-01-04 16:50:02 +01:00
event_log_hook_windows.go windows: log fatal and panic errors to event log (#1667) 2022-07-19 09:48:02 +02:00
main.go improve feature flag logging (#1986) 2023-01-13 13:42:42 +01:00
main_test.go instrument main() for tests (#1399) 2022-04-01 11:17:45 +02:00
Makefile make: accept BUILD_VENDOR_FLAGS variable (#1771) 2022-10-04 09:51:35 +02:00
metrics.go Allow parsers to capture data for future enrichment (#1969) 2023-01-11 15:01:02 +01:00
output.go acually postoverflow _before_ reprocessing (#1739) 2022-09-07 14:16:47 +02:00
parse.go Add alerts and decisions metrics, LAPI and agent timing prom metrics (#1546) 2022-06-22 11:14:34 +02:00
pour.go Add Kubernetes audit acquisition (#1767) 2022-12-06 13:47:29 +01:00
run_in_svc.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
run_in_svc_windows.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
serve.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
win_service.go silence yaml.local explicitly in cscli, keep in crowdsec/bouncer logs (#1981) 2023-01-11 09:50:46 +01:00
win_service_install.go Windows Support (#1159) 2022-05-17 12:14:59 +02:00
win_service_manage.go Windows Support (#1159) 2022-05-17 12:14:59 +02:00