Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initialize: function(properties) {
Logger.setLevel(Logger.INFO);
if (false) Logger.setLevel(Logger.OFF);
Object.assign(this, properties);
if (this.secure) {
this.options = {
key: fs.readFileSync('/home/ubuntu/workspace/trust/server.key.private.pem'),
cert: fs.readFileSync('/home/ubuntu/workspace/trust/server.cert.pem'),
requestCert: false
};
}
},
initializeLogger: function() {
Logger.useDefaults();
Logger.setLevel(Logger.INFO);
this.initializeInternalLevels(Logger.INFO);
this.initializeInternalLevels(Logger.OFF);
Logger.get('exchange-secure').setLevel(Logger.OFF);
Logger.get('exchange-learning').setLevel(Logger.OFF);
},
initializeLogger: function() {
Logger.useDefaults();
Logger.setLevel(Logger.INFO);
this.initializeInternalLevels(Logger.INFO);
this.initializeInternalLevels(Logger.OFF);
Logger.get('exchange-secure').setLevel(Logger.OFF);
Logger.get('exchange-learning').setLevel(Logger.OFF);
},