Skip to content

Commit

Permalink
Only reload log files if logger exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rochoa committed Sep 30, 2016
1 parent f8a8d33 commit b0dfe1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Expand Up @@ -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 () {
Expand Down

0 comments on commit b0dfe1d

Please sign in to comment.