Skip to content

Conversation

@House-Men
Copy link
Contributor

@House-Men House-Men commented Nov 6, 2025

遇到HttpServer loop_thread 中的日志 EventLoop started消息 和 EventLoop stopped消息 日志文件意外分离,经过排查发现原因如下
hlog_set_file或hlog_set_xxxx各种设置后,在httpserver多线程或自己的业务线程运行时,外部执行 -s stop 或 -s restart 触发 signal_handler 或其他形式的原因只要调用 exit 就会触发 atexit 的 hv_destroy_default_logger销毁,此时其他工作线程使用的logger被重置导致开头的hlog_set_各类设置失效。

我发现其他人也遇到过类似现象 #171

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

Successfully merging this pull request may close these issues.

1 participant