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

插件hook函数加载时间点优先于日志 #199

Open
hy1080 opened this issue Jun 26, 2023 · 0 comments
Open

插件hook函数加载时间点优先于日志 #199

hy1080 opened this issue Jun 26, 2023 · 0 comments

Comments

@hy1080
Copy link

hy1080 commented Jun 26, 2023

不确定是否用法有问题,把所有函数都hook了一遍,然后直接fmt.Println打印执行到的函数。程序启动,但是在接收消息时没发现hook的函数打印信息,于是改成log,结果直接崩溃。
发现服务启动时会先把各hook函数运行一遍之后才加载日志文件。

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

1 participant