Skip to content

Commit d642943

Browse files
Thales BacelarMaureenHelm
authored andcommitted
logging: Trigger logging thread when we start to drop messages
Wake up logging thread when we start to drop messages. Signed-off-by: Thales Bacelar <[email protected]>
1 parent cf0c2a5 commit d642943

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/logging/log_core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,11 @@ void z_log_dropped(bool buffered)
616616
if (buffered) {
617617
atomic_dec(&buffered_cnt);
618618
}
619+
620+
if (IS_ENABLED(CONFIG_LOG_PROCESS_THREAD)) {
621+
k_timer_stop(&log_process_thread_timer);
622+
k_sem_give(&log_process_thread_sem);
623+
}
619624
}
620625

621626
uint32_t z_log_dropped_read_and_clear(void)

0 commit comments

Comments
 (0)