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

尾行模式的问题。 #169

Open
fyyxxm opened this issue Oct 20, 2023 · 1 comment
Open

尾行模式的问题。 #169

fyyxxm opened this issue Oct 20, 2023 · 1 comment

Comments

@fyyxxm
Copy link

fyyxxm commented Oct 20, 2023

log组件添加尾行模式相关代码:shellWriteEndLine()

log组件先初始化,
shell组件后初始化。

这样shellWriteEndLine这个代码会卡死。因为shell没被初始化,shell的接口函数都没对接起来。
传入的参数shell,也基本都是全局变量,基本也不可能是null的。

针对这种跨组件的接口,感觉还是要考虑这种情况的。
建议该函数改为,如果传入的shell未初始化,直接返回。

log_init

@NevermindZZT
Copy link
Owner

确实会出问题,后面改一下,感谢

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