From e0fb5d927fe0941b431b634c92e845e7af63fe23 Mon Sep 17 00:00:00 2001 From: Mikhail T Date: Tue, 5 Dec 2017 11:42:14 -0500 Subject: [PATCH] Add signal-handling to allow proper log-rotation. --- src/lib/logger.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/logger.js b/src/lib/logger.js index dd8bac2ee..3d777bf40 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -93,6 +93,10 @@ function setup(logs) { }, }); + process.on('SIGUSR2', function () { + log.reopenFileStreams(); + }); + module.exports.logger = logger; }