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

EasyLogger报错 #30

Open
zhouyl007 opened this issue Oct 30, 2018 · 6 comments
Open

EasyLogger报错 #30

zhouyl007 opened this issue Oct 30, 2018 · 6 comments

Comments

@zhouyl007
Copy link

Error: Log sector header error! Now will clean all log area.
或者
Error: There must be only one sector status is USING! Now will clean all log area.

这些问题如何处理??

@armink
Copy link
Owner

armink commented Oct 31, 2018

第一次运行可能出现这个情况,你是这样的情况吗?

@zhouyl007
Copy link
Author

没错,首次使用。我尝试了多次,直到将日志存储区划分小一点,且远离ENV存储区才解决。

@armink
Copy link
Owner

armink commented Oct 31, 2018

首次使用按道理这个是正常情况,毕竟此时日志分区是完全干净的 Flash 分区。这个操作相当于给 日志分区 进行格式化,写入必要的状态信息等等

@zhouyl007
Copy link
Author

希望朱总有时间可以解决EasyLogger初次使用报错的问题,让更多的C开发者用上这样的优秀设计。

@armink
Copy link
Owner

armink commented Oct 31, 2018

这有点不太好处理呢,现在的处理方式就相当于第一次使用时,强制给 日志分区 格式化,再增加一个用户手动格式化的接口,这样对用户使用也会是个麻烦事。

要不改为警告级别,再把信息内容提示的更加直观?

@zhouyl007
Copy link
Author

是的,只要警告就可以了,不影响程序正常执行,报错会让首次使用的用户疑惑。

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

2 participants