mirror of https://github.com/msgbyte/tailchat
feat: 增加环境变量用于禁用日志选项
parent
4088de907f
commit
de37f647a0
@ -1,5 +1,15 @@
|
|||||||
import brokerConfig from 'tailchat-server-sdk/dist/runner/moleculer.config';
|
import {
|
||||||
|
defaultBrokerConfig,
|
||||||
|
config,
|
||||||
|
BrokerOptions,
|
||||||
|
} from 'tailchat-server-sdk';
|
||||||
|
|
||||||
export default {
|
const brokerConfig: BrokerOptions = {
|
||||||
...brokerConfig,
|
...defaultBrokerConfig,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (config.feature.disableLogger === true) {
|
||||||
|
brokerConfig.logger = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default brokerConfig;
|
||||||
|
Loading…
Reference in New Issue