diff --git a/crates/common/tedge_config/src/tedge_config_cli/tedge_config.rs b/crates/common/tedge_config/src/tedge_config_cli/tedge_config.rs index 10a48fdff7b..223c3a44c75 100644 --- a/crates/common/tedge_config/src/tedge_config_cli/tedge_config.rs +++ b/crates/common/tedge_config/src/tedge_config_cli/tedge_config.rs @@ -385,6 +385,13 @@ define_tedge_config! { #[tedge_config(default(value = "te/+/+/+/+/m/+,tedge/alarms/+/+,tedge/alarms/+/+/+,tedge/events/+,tedge/events/+/+,tedge/health/+,tedge/health/+/+"))] topics: TemplatesSet, + enable: { + /// Enable log management + // TODO turn the default to true, when c8y-log-plugin will be deprecated + #[tedge_config(example = "true", default(value = false))] + log_management: bool, + } + }, #[tedge_config(deprecated_name = "azure")] // for 0.1.0 compatibility diff --git a/crates/extensions/c8y_mapper_ext/src/config.rs b/crates/extensions/c8y_mapper_ext/src/config.rs index f0cb32b79d5..78c85583db4 100644 --- a/crates/extensions/c8y_mapper_ext/src/config.rs +++ b/crates/extensions/c8y_mapper_ext/src/config.rs @@ -82,8 +82,9 @@ impl C8yMapperConfig { let tedge_http_host = format!("{}:{}", tedge_http_address, tedge_http_port); - // TODO read these capabilities from disk - let capabilities = Capabilities::default(); + let capabilities = Capabilities { + log_management: tedge_config.c8y.enable.log_management, + }; let mut topics = Self::default_internal_topic_filter(&config_dir)?;