Commit 2cd87cd6 authored by José Gato Luis's avatar José Gato Luis

Reducing socket.io logs

parent fef8f98d
Pipeline #7104 canceled with stages
......@@ -54,10 +54,11 @@ if ((config.app.protocol != undefined) && (config.app.protocol == 'https')) {
} else
var server = require('http').createServer(server_options, app);
var io = require('socket.io').listen(server, {
log: true
});
var io = require('socket.io');
io = io.listen(server);
io.set('heartbeats', false); //removes heartbeats
io.set('log level', 1);
var brokerManager = undefined;
var dbAEON = undefined;
......@@ -78,7 +79,6 @@ server.listen(config.app.portEventsManager, function () {
} else {
url = format("mongodb://%s:%s/%s", config.db.host, config.db.port, config.db.db);
}
mongoClient.connect(url).then(function (mongoClient) {
dbAEON = mongoClient.db(config.db.db);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment