diff --git a/server/wsproxy/app.cc b/server/wsproxy/app.cc index d190cad..cb769a7 100644 --- a/server/wsproxy/app.cc +++ b/server/wsproxy/app.cc @@ -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()));