日志间隔改为30秒

This commit is contained in:
aozhiwei 2019-08-31 14:27:18 +08:00
parent 4120ac569f
commit 2e30f0dab5
2 changed files with 2 additions and 5 deletions

View File

@ -159,6 +159,6 @@ long long GGListener::GetSentBytesNum()
void GGListener::OnListenError(int errorid)
{
a8::XPrintf("GGListeneron_error %d %d", {type, errorid});
a8::XPrintf("GGListeneron_error %d", {errorid});
App::Instance()->terminated = true;
}

View File

@ -214,10 +214,7 @@ bool App::Init(int argc, char* argv[])
a8::UdpLog::Instance()->Info("gameserver starting instance_id:%d pid:%d", {instance_id, getpid()});
{
int perf_log_time = 1000 * 60 * 5;
if (getenv("is_dev_env")) {
perf_log_time = 1000 * 10;
}
int perf_log_time = 1000 * 30;
a8::Timer::Instance()->AddRepeatTimer(perf_log_time,
a8::XParams(),
[] (const a8::XParams& param)