mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Add better logging
This commit is contained in:
parent
354b86ed01
commit
f70d05ae49
@ -121,12 +121,14 @@ public class YoutubeManager {
|
||||
|
||||
youtubeDataLoaderPool.shutdown();
|
||||
try {
|
||||
youtubeDataLoaderPool.awaitTermination(60, TimeUnit.SECONDS);
|
||||
if(!youtubeDataLoaderPool.awaitTermination(60, TimeUnit.SECONDS))
|
||||
LOGGER.error("Youtube Manager -> Failed, timeout elapsed before termination!");
|
||||
} catch (InterruptedException 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