logging shutdown info

This commit is contained in:
Athou
2014-08-12 14:53:04 +02:00
parent 757cfff0e6
commit fd6701079e
2 changed files with 3 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ public class FeedRefreshTaskGiver implements Managed {
@Override
public void stop() {
log.info("shutting down feed refresh task giver");
executor.shutdownNow();
while (!executor.isTerminated()) {
try {
@@ -82,7 +83,7 @@ public class FeedRefreshTaskGiver implements Managed {
try {
Thread.sleep(15000);
} catch (InterruptedException e) {
log.error("interrupted while sleeping");
log.debug("interrupted while sleeping");
}
}
} catch (Exception e) {

View File

@@ -82,6 +82,7 @@ public class FeedRefreshUpdater implements Managed {
@Override
public void stop() throws Exception {
log.info("shutting down feed refresh updater");
pool.shutdown();
}