mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
logging shutdown info
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -82,6 +82,7 @@ public class FeedRefreshUpdater implements Managed {
|
||||
|
||||
@Override
|
||||
public void stop() throws Exception {
|
||||
log.info("shutting down feed refresh updater");
|
||||
pool.shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user