Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否考虑添加Lock失败,放弃本次log的机制 #139

Open
Shin-ing opened this issue May 24, 2023 · 2 comments
Open

是否考虑添加Lock失败,放弃本次log的机制 #139

Shin-ing opened this issue May 24, 2023 · 2 comments

Comments

@Shin-ing
Copy link

RTOS环境下,如果在timer或者ISR中调用了log的API就可能会引起异常,在timer或者ISR中调用mutex或者sem通常会返回失败,此时如果放弃此次log就能避免此次log造成的异常

@zhangbin-eos
Copy link

首先我觉得应该避免在中断进行日志操作,其次,如果日志存在放弃记录的可能性,那日志的可信度就变差; 当你在看日志的时候还得想日志中是否有遗漏的内容

@armink
Copy link
Owner

armink commented Jun 28, 2023

是的,或者参考 ulog ,后面版本加上个中断日志的能力吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants