File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
packages/sdk/src/services/lib Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,8 @@ if (config.feature.disableLogger === true) {
1212 brokerConfig . logger = false ;
1313}
1414
15+ if ( config . feature . disableInfoLog === true ) {
16+ brokerConfig . logLevel = 'error' ;
17+ }
18+
1519export default brokerConfig ;
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export const config = {
6666 disableMsgpack : checkEnvTrusty ( process . env . DISABLE_MESSAGEPACK ) , // 是否禁用socketio的 messgpack parser
6767 disableFileCheck : checkEnvTrusty ( process . env . DISABLE_FILE_CHECK ) ,
6868 disableLogger : checkEnvTrusty ( process . env . DISABLE_LOGGER ) , // 是否关闭日志
69+ disableInfoLog : checkEnvTrusty ( process . env . DISABLE_INFO_LOG ) , // 是否关闭常规日志(仅保留错误日志)
6970 disableUserRegister : checkEnvTrusty ( process . env . DISABLE_USER_REGISTER ) , // 是否关闭用户注册功能
7071 disableGuestLogin : checkEnvTrusty ( process . env . DISABLE_GUEST_LOGIN ) , // 是否关闭用户游客登录功能
7172 disableCreateGroup : checkEnvTrusty ( process . env . DISABLE_CREATE_GROUP ) , // 是否禁用用户创建群组功能
You can’t perform that action at this time.
0 commit comments