Skip to content

Commit 973e5aa

Browse files
committed
[nrf fromlist][nrfconnect] Add Kconfig to enable detailed logging of Matter messages
This commit adds a new Kconfig which enables enhanced verbosity for logging content of Matter messages. Signed-off-by: Łukasz Duda <[email protected]>
1 parent eaf8f2d commit 973e5aa

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config/nrfconnect/chip-module/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ matter_add_gn_arg_bool ("chip_enable_factory_data" CONFIG_CHIP_FA
160160
matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)
161161
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF70)
162162
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_OPENTHREAD)
163+
matter_add_gn_arg_bool ("enable_im_pretty_print" CONFIG_CHIP_IM_PRETTY_PRINT)
163164

164165
matter_add_gn_arg_bool ("chip_system_config_use_sockets" NOT CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)
165166
matter_add_gn_arg_bool ("chip_system_config_use_openthread_inet_endpoints" CONFIG_CHIP_USE_OPENTHREAD_ENDPOINT)

config/nrfconnect/chip-module/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,4 +481,15 @@ config CHIP_WIFI
481481
imply NET_STATISTICS_IPV6
482482
imply NET_STATISTICS_USER_API
483483

484+
config CHIP_IM_PRETTY_PRINT
485+
bool "Enable detailed logging of Matter messages"
486+
depends on !CHIP_LOG_SIZE_OPTIMIZATION
487+
depends on MATTER_LOG_LEVEL_DBG
488+
help
489+
Enables enhanced verbosity for logging content of Matter messages. This configuration option
490+
facilitates detailed tracking of interactions, including Cluster ID, Endpoint ID, Attribute ID,
491+
or Command ID as well as payload content for all interaction types (like Read Request or Invoke
492+
Request). This option helps in debugging and development of message exchanges within the Matter
493+
protocol.
494+
484495
endif # CHIP

0 commit comments

Comments
 (0)