日志:修改日志信息
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
require('xprofiler').start({
|
||||
log_dir: '/root/zyz/game-server/logs',
|
||||
log_dir: '/zyz_logs/xprofiler',
|
||||
});
|
||||
import { COM_TEAM_STATUS, STATUS } from './app/consts';
|
||||
import {
|
||||
|
||||
@@ -182,7 +182,8 @@ export class ComBattleHandler {
|
||||
let sid = session.get('sid');
|
||||
let { teamCode, isFrd } = msg;
|
||||
let teamStatus = this.teamMap.get(teamCode);
|
||||
if (!teamStatus || teamStatus.status !== COM_TEAM_STATUS.DEFAULT) return resResult(STATUS.COM_BATTLE_TEAM_INVALID);
|
||||
if (!teamStatus) return resResult(STATUS.COM_BATTLE_TEAM_INVALID);
|
||||
if(teamStatus.status !== COM_TEAM_STATUS.DEFAULT) return resResult(STATUS.COM_BATTLE_TEAM_NOT_DEFAULT);
|
||||
if (teamIsFullToStart(teamStatus)) return resResult(STATUS.COM_BATTLE_MEMBER_LIMIT);
|
||||
if (teamStatus.roleIds.indexOf(roleId) !== -1) return resResult(STATUS.COM_BATTLE_DUP_ENTER);
|
||||
if (teamStatus.blacklist.indexOf(roleId) != -1) return resResult(STATUS.COM_BATTLE_BE_KICKED);
|
||||
|
||||
@@ -260,11 +260,8 @@ module.exports = {
|
||||
{ 'id': 'role-server-3', 'host': '172.16.4.108', 'port': 6062 },
|
||||
],
|
||||
'battle': [
|
||||
{ 'id': 'battle-server-1', 'host': '172.16.4.108', 'port': 6054 }
|
||||
],
|
||||
'gate': [
|
||||
{ 'id': 'gate-server-1', 'host': '172.16.4.108', 'clientHost': 'sq1-game1-sgzyz.37wan.com', 'clientPort': 3014, 'frontend': true },
|
||||
{ 'id': 'gate-server-2', 'host': '172.16.4.108', 'clientHost': 'sq1-game1-sgzyz.37wan.com', 'clientPort': 3015, 'frontend': true }
|
||||
{ 'id': 'battle-server-1', 'host': '172.16.4.108', 'port': 6054 },
|
||||
{ 'id': 'battle-server-2', 'host': '172.16.4.108', 'port': 6067 },
|
||||
],
|
||||
'gm': [],
|
||||
'systimer': [
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = {
|
||||
packages: [], // 数组,配置需要监控的项目依赖文件全路径
|
||||
|
||||
// III. 不是很重要的可选的配置
|
||||
logDir: './game-server/logs', // xprofiler 插件生成性能日志文件的目录,默认两者均为 os.tmpdir()
|
||||
logDir: '/zyz_logs/xprofiler', // xprofiler 插件生成性能日志文件的目录,默认两者均为 os.tmpdir()
|
||||
docker: false, // 默认 false, 系统数据采集会依赖当前是否是 docker 环境而进行一些特殊处理,可以手动强制指定当前实例是否为 docker 环境
|
||||
ipMode: false, // 默认 false,此时仅使用 hostname 作为 agentId;设置为 true 后 agentId 组装形式为 ${ip}_${hostname}
|
||||
libMode: false, // 默认 false,此时采集如果收到 shutdown 事件会退出当前进程;如果是以第三方库的形式引用接入应用内,请将此属性设置为 true
|
||||
|
||||
Reference in New Issue
Block a user