1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

redirected logs to files

This commit is contained in:
Massimo Candela
2019-06-30 01:42:58 +02:00
parent 8e133351a4
commit bae0bca63c
7 changed files with 32 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import WebSocket from "ws";
import sleep from "sleep";
import Consumer from "./consumer";
import InputManager from "./inputManager";
import logger from './logger';
const inputManager = new InputManager(config);
@@ -57,7 +57,10 @@ if (cluster.isMaster) {
});
ws.on('close', function close() {
console.log('Disconnected');
logger.log({
level: 'info',
message: 'Web socket disconnected'
});
});
}