From 5ac4241886896bf32f1eeebdf9083f0650e9cd16 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Mon, 30 Dec 2019 11:59:53 +0100 Subject: [PATCH] Improve logging --- .../src/main/java/ctbrec/recorder/NextGenLocalRecorder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/ctbrec/recorder/NextGenLocalRecorder.java b/common/src/main/java/ctbrec/recorder/NextGenLocalRecorder.java index b3b4fe48..8264e401 100644 --- a/common/src/main/java/ctbrec/recorder/NextGenLocalRecorder.java +++ b/common/src/main/java/ctbrec/recorder/NextGenLocalRecorder.java @@ -439,8 +439,9 @@ public class NextGenLocalRecorder implements Recorder { ppPool.shutdown(); client.shutdown(); downloadPool.awaitTermination(1, TimeUnit.MINUTES); - LOG.info("Waiting for post-processing to finish"); - ppPool.awaitTermination(10, TimeUnit.MINUTES); + int minutesToWait = 10; + LOG.info("Waiting {} minutes (max) for post-processing to finish", minutesToWait); + ppPool.awaitTermination(minutesToWait, TimeUnit.MINUTES); } catch (InterruptedException e) { Thread.currentThread().interrupt(); LOG.error("Error while waiting for pools to finish", e);