优化
This commit is contained in:
23
server/moleculer.config.ts
Normal file
23
server/moleculer.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import {
|
||||
defaultBrokerConfig,
|
||||
config,
|
||||
BrokerOptions,
|
||||
} from 'tailchat-server-sdk';
|
||||
|
||||
const brokerConfig: BrokerOptions = {
|
||||
...defaultBrokerConfig,
|
||||
};
|
||||
|
||||
if (config.feature.disableLogger === true) {
|
||||
brokerConfig.logger = false;
|
||||
}
|
||||
|
||||
if (config.feature.disableInfoLog === true) {
|
||||
brokerConfig.logLevel = 'error';
|
||||
}
|
||||
|
||||
if (config.feature.disableTracing === true) {
|
||||
brokerConfig.tracing = undefined;
|
||||
}
|
||||
|
||||
export default brokerConfig;
|
||||
Reference in New Issue
Block a user