Only reload log files if logger exists

This commit is contained in:
Raul Ochoa 2016-09-30 17:10:52 +02:00
parent f8a8d3316c
commit b0dfe1d509

4
app.js
View File

@ -100,7 +100,9 @@ process.on('SIGHUP', function() {
console.log('Log files reloaded');
});
server.batch.logger.reopenFileStreams();
if (server.batch && server.batch.logger) {
server.batch.logger.reopenFileStreams();
}
});
process.on('SIGTERM', function () {