forked from Archives/Athou_commafeed
logging shutdown info
This commit is contained in:
@@ -47,6 +47,7 @@ public class FeedRefreshTaskGiver implements Managed {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
log.info("shutting down feed refresh task giver");
|
||||||
executor.shutdownNow();
|
executor.shutdownNow();
|
||||||
while (!executor.isTerminated()) {
|
while (!executor.isTerminated()) {
|
||||||
try {
|
try {
|
||||||
@@ -82,7 +83,7 @@ public class FeedRefreshTaskGiver implements Managed {
|
|||||||
try {
|
try {
|
||||||
Thread.sleep(15000);
|
Thread.sleep(15000);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
log.error("interrupted while sleeping");
|
log.debug("interrupted while sleeping");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ public class FeedRefreshUpdater implements Managed {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stop() throws Exception {
|
public void stop() throws Exception {
|
||||||
|
log.info("shutting down feed refresh updater");
|
||||||
pool.shutdown();
|
pool.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user