Improve logging

This commit is contained in:
0xboobface 2019-12-30 11:59:53 +01:00
parent 5ecad75b0d
commit 5ac4241886
1 changed files with 3 additions and 2 deletions

View File

@ -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);