logging: log output busy loops if log output function can not process buffer #12241
Labels
area: Logging
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
According to the documentation the log_output_func shall return the number of bytes processed.
If the function returns 0 the log buffer_write function busy loops forever.
To Reproduce
Steps to reproduce the behavior:
Change the log_output_func to return 0.
Expected behavior
Ether - The logger shall stop the output to the backend and come back later.
Or - Improve documentation to reflect the needed behaviour (which is still unclear to me)
Impact
Application stalls if log output stalls.
Screenshots or console output
N/A
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: