diff --git a/pkg/config/config.go b/pkg/config/config.go index e49d984b056070..75e3d4e2942ecb 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -244,6 +244,7 @@ func InitConfig(config Config) { config.BindEnvAndSetDefault("confd_path", defaultConfdPath) config.BindEnvAndSetDefault("additional_checksd", defaultAdditionalChecksPath) config.BindEnvAndSetDefault("jmx_log_file", "") + // If enabling log_payloads, ensure the log level is set to at least DEBUG to be able to see the logs config.BindEnvAndSetDefault("log_payloads", false) config.BindEnvAndSetDefault("log_file", "") config.BindEnvAndSetDefault("log_file_max_size", "10Mb")