Improve logging
This commit is contained in:
parent
5ecad75b0d
commit
5ac4241886
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue