logging: Reset buffered message counter on init

Add reset of buffered messages counter to the initialization function.
It is for testing purposes sinces in the application logging is
initialized only once.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-10-12 09:11:17 +02:00 committed by Carles Cufí
commit 63eba62876

View file

@ -221,6 +221,7 @@ void log_core_init(void)
{
panic_mode = false;
dropped_cnt = 0;
buffered_cnt = 0;
if (IS_ENABLED(CONFIG_LOG_FRONTEND)) {
log_frontend_init();