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

fix: add log function's missing return value #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion log/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Log

static void *flush_log_thread(void *args)
{
Log::get_instance()->async_write_log();
return Log::get_instance()->async_write_log();
}
//可选择的参数有日志文件、日志缓冲区大小、最大行数以及最长日志条队列
bool init(const char *file_name, int close_log, int log_buf_size = 8192, int split_lines = 5000000, int max_queue_size = 0);
Expand All @@ -44,6 +44,8 @@ class Log
fputs(single_log.c_str(), m_fp);
m_mutex.unlock();
}

return nullptr;
}

private:
Expand Down