Hello Dear Community,
Is there a way to reduce the log severity of the modules nrf_dfu_flash or nrf_dfu_settings via define?
Best Regards,
Nico
Hello Dear Community,
Is there a way to reduce the log severity of the modules nrf_dfu_flash or nrf_dfu_settings via define?
Best Regards,
Nico
Hi,
You can reduce the log level by editing the NRF_LOG_DEFAULT_LEVEL in the sdk_config.h
Most of the logging inside nrf_dfu_flash is on DEBUG level, you can remove them by setting the NRF_LOG_DEFAULT_LEVEL to INFO .
Thanks for your answer.
Changing the severity of those modules only is not supported?
Thanks for your answer.
Changing the severity of those modules only is not supported?
I don't think we have implemented the macro to disable logging for only the nrf_dfu_flash yet. But you can add something similar to this:
#define NRF_LOG_MODULE_NAME nrf_sdh
#if NRF_SDH_LOG_ENABLED
#define NRF_LOG_LEVEL NRF_SDH_LOG_LEVEL
#define NRF_LOG_INFO_COLOR NRF_SDH_INFO_COLOR
#define NRF_LOG_DEBUG_COLOR NRF_SDH_DEBUG_COLOR
#else
#define NRF_LOG_LEVEL 0
#endif // NRF_SDH_LOG_ENABLED
#include "nrf_log.h"
NRF_LOG_MODULE_REGISTER();
Basically setting NRF_LOG_LEVEL = 0 before calling NRF_LOG_MODULE_REGISTER() will disable logging for the module.