Add better logging

This commit is contained in:
brenoepic 2022-04-29 22:36:35 -03:00
parent 354b86ed01
commit f70d05ae49

View File

@ -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)");
});
}