From 95c05168dab09c09a6df2f8a79dc376fed6db6ad Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 11 Nov 2021 17:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app.ts | 4 +--- game-server/config/alpha/log4js.ts | 2 +- game-server/config/dev/log4js.ts | 2 +- game-server/config/development/log4js.ts | 2 +- game-server/config/isbn/log4js.ts | 2 +- game-server/config/monitor/log4js.ts | 2 +- game-server/config/production/log4js.ts | 2 +- 7 files changed, 7 insertions(+), 9 deletions(-) diff --git a/game-server/app.ts b/game-server/app.ts index 2a586e6f2..dcc64a561 100644 --- a/game-server/app.ts +++ b/game-server/app.ts @@ -186,13 +186,11 @@ function setupFilters(app: _pinus.Application) { app.filter(globalFilter(app)); app.globalAfter((err: Error, routeRecord: RouteRecord, msg: any, session: FrontendOrBackendSession, resp: any, cb: HandlerCallback) => { - infologger.debug('global after ', msg && msg.route, msg && JSON.stringify(msg.body), session && session.get('roleId')); + infologger.debug('global after ', JSON.stringify(routeRecord), msg && msg.route, msg && JSON.stringify(msg.body), resp && JSON.stringify(resp), session && session.get('roleId')); if (err) infologger.debug(err); }) app.globalBefore((routeRecord: RouteRecord, msg: any, session: FrontendOrBackendSession, cb: HandlerCallback) => { - infologger.debug(JSON.stringify(routeRecord)) - infologger.debug('global before ', msg && msg.route, msg && JSON.stringify(msg.body), session && session.get('roleId')) if (msg.body === null) { cb(new Error(`msg body ===null maybe protobuf check error uid:${session.uid} ${JSON.stringify(msg)}`), { code: 499 }); return; diff --git a/game-server/config/alpha/log4js.ts b/game-server/config/alpha/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/alpha/log4js.ts +++ b/game-server/config/alpha/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': { diff --git a/game-server/config/dev/log4js.ts b/game-server/config/dev/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/dev/log4js.ts +++ b/game-server/config/dev/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': { diff --git a/game-server/config/development/log4js.ts b/game-server/config/development/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/development/log4js.ts +++ b/game-server/config/development/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': { diff --git a/game-server/config/isbn/log4js.ts b/game-server/config/isbn/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/isbn/log4js.ts +++ b/game-server/config/isbn/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': { diff --git a/game-server/config/monitor/log4js.ts b/game-server/config/monitor/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/monitor/log4js.ts +++ b/game-server/config/monitor/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': { diff --git a/game-server/config/production/log4js.ts b/game-server/config/production/log4js.ts index 54072bf79..20c573220 100644 --- a/game-server/config/production/log4js.ts +++ b/game-server/config/production/log4js.ts @@ -143,7 +143,7 @@ module.exports = { 'level': 'debug' }, 'pinus': { - 'appenders': ['console', 'pinus', 'app'], + 'appenders': ['console', 'pinus'], 'level': 'debug' }, 'info': {