This commit is contained in:
aozhiwei 2018-09-07 14:00:01 +08:00
parent ed450a6b4a
commit bfd9baa385

View File

@ -95,7 +95,7 @@ void App::Init(int argc, char* argv[])
a8::UdpLog::Instance()->Info("masterserver starting instance_id:%d pid:%d", {instance_id, getpid()});
{
int perf_log_time = 1000 * 60 * 5;
if (getenv("machine_type")) {
if (getenv("is_dev_env")) {
perf_log_time = 1000 * 10;
}
a8::Timer::Instance()->AddRepeatTimer(perf_log_time,
@ -395,7 +395,7 @@ void App::ProcessIMMsg()
void App::InitLog()
{
std::string filename_fmt = PROJ_LOG_FILENAME;
if (getenv("machine_type")) {
if (getenv("is_dev_env")) {
a8::ReplaceString(filename_fmt, "$pid", a8::XValue(0));
} else {
a8::ReplaceString(filename_fmt, "$pid", a8::XValue(getpid()));