Add config property to enable/disable config upload on startup
This commit is contained in:
parent
ed80e8a436
commit
4ae65643ba
7 changed files with 25 additions and 10 deletions
|
@ -320,7 +320,9 @@ void CCClient::onThreadStarted(void* handle)
|
|||
static_cast<uint64_t>(m_self->m_options->ccUpdateInterval() * 1000),
|
||||
static_cast<uint64_t>(m_self->m_options->ccUpdateInterval() * 1000));
|
||||
|
||||
m_self->publishConfig();
|
||||
if (m_self->m_options->ccUploadConfigOnStartup()) {
|
||||
m_self->publishConfig();
|
||||
}
|
||||
|
||||
uv_run(&m_self->m_client_loop, UV_RUN_DEFAULT);
|
||||
}
|
||||
|
|
|
@ -288,8 +288,6 @@ unsigned Service::getClientLog(const std::string& clientId, std::string& resp)
|
|||
data << m_row.c_str() << std::endl;
|
||||
}
|
||||
|
||||
LOG_INFO("LOG: %s", data.str().c_str());
|
||||
|
||||
respDocument.AddMember("client_log", rapidjson::StringRef(data.str().c_str()), allocator);
|
||||
|
||||
rapidjson::StringBuffer buffer(0, 4096);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue