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

还没开启日志功能就使用日志,逻辑不对吧 #102

Open
1900100209 opened this issue Apr 30, 2024 · 0 comments
Open

还没开启日志功能就使用日志,逻辑不对吧 #102

1900100209 opened this issue Apr 30, 2024 · 0 comments

Comments

@1900100209
Copy link

InitEventMode_(trigMode);
if(!InitSocket_()) { isClose_ = true;}

if(openLog) {
   Log::Instance()->init(logLevel, "./log", ".log", logQueSize);
bool WebServer::InitSocket_() {
  if(port_ > 65535 || port_ < 1024) {
    LOG_ERROR("Port:%d error!",  port_);
    exit(1);
  }
  ...
}

还没开启日志,就是用日志打印。。。。

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