mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Add better logging
This commit is contained in:
parent
354b86ed01
commit
f70d05ae49
@ -121,12 +121,14 @@ public class YoutubeManager {
|
|||||||
|
|
||||||
youtubeDataLoaderPool.shutdown();
|
youtubeDataLoaderPool.shutdown();
|
||||||
try {
|
try {
|
||||||
youtubeDataLoaderPool.awaitTermination(60, TimeUnit.SECONDS);
|
if(!youtubeDataLoaderPool.awaitTermination(60, TimeUnit.SECONDS))
|
||||||
|
LOGGER.error("Youtube Manager -> Failed, timeout elapsed before termination!");
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
LOGGER.error("Caught Exception", e);
|
LOGGER.error("Caught Exception", e);
|
||||||
}
|
Thread.currentThread().interrupt();
|
||||||
|
} finally {
|
||||||
LOGGER.info("YouTube Manager -> Loaded! (" + (System.currentTimeMillis() - millis) + " MS)");
|
LOGGER.info("YouTube Manager -> Loaded! (" + (System.currentTimeMillis() - millis) + " MS)");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user