diff --git a/subsys/net/lib/nrf_cloud/Kconfig b/subsys/net/lib/nrf_cloud/Kconfig index 8998c380e26..fbb08a5f900 100644 --- a/subsys/net/lib/nrf_cloud/Kconfig +++ b/subsys/net/lib/nrf_cloud/Kconfig @@ -35,6 +35,7 @@ config NRF_CLOUD_PRINT_DETAILS config NRF_CLOUD_VERBOSE_DETAILS bool "Log more info about cloud connection" + depends on NRF_CLOUD_PRINT_DETAILS default y if NRF_CLOUD_PRINT_DETAILS help Log at INF level the stage, protocol, sec tag, host name, and team ID, diff --git a/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c b/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c index ece5df8e4d2..cf99fb1b204 100644 --- a/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c +++ b/subsys/net/lib/nrf_cloud/src/nrf_cloud_info.c @@ -152,7 +152,7 @@ int nrf_cloud_print_details(void) int nrf_cloud_print_cloud_details(void) { int err = 0; -#if defined(CONFIG_NRF_CLOUD_PRINT_DETAILS) && defined(CONFIG_NRF_CLOUD_VERBOSE_DETAILS) +#if defined(CONFIG_NRF_CLOUD_VERBOSE_DETAILS) #if defined(CONFIG_NRF_CLOUD_MQTT) char tenant[NRF_CLOUD_TENANT_ID_MAX_LEN];