diff --git a/paladins-webservice/src/main/java/dev/luzifer/spring/Application.java b/paladins-webservice/src/main/java/dev/luzifer/spring/Application.java index f20fa6c..1fee532 100644 --- a/paladins-webservice/src/main/java/dev/luzifer/spring/Application.java +++ b/paladins-webservice/src/main/java/dev/luzifer/spring/Application.java @@ -30,27 +30,9 @@ public class Application { @EventListener(ApplicationReadyEvent.class) public void connectToDatabase() { - shootFormattedDebugMessage(1, 2, 3, 4); gameDao.initializeDatabase(); } - private void shootFormattedDebugMessage(int duplicated, int success, int error, int notFound) { - - Webservice.REST_LOGGER.info(success + " game(s) has been saved to the database."); - - if (notFound > 0) { - Webservice.REST_LOGGER.warning("> | " + notFound + " game(s) were not inserted"); - } - - if (error > 0) { - Webservice.REST_LOGGER.warning("> | " + error + " game(s) had errors"); - } - - if (duplicated > 0) { - Webservice.REST_LOGGER.warning("> | " + duplicated + " game(s) are duplicates"); - } - } - @EventListener(ApplicationStartedEvent.class) public void startApplication() { Webservice.REST_LOGGER.info("Booting up application..."); diff --git a/paladins-webservice/src/main/java/dev/luzifer/spring/controller/GameController.java b/paladins-webservice/src/main/java/dev/luzifer/spring/controller/GameController.java index ba093fa..d5fa288 100644 --- a/paladins-webservice/src/main/java/dev/luzifer/spring/controller/GameController.java +++ b/paladins-webservice/src/main/java/dev/luzifer/spring/controller/GameController.java @@ -136,21 +136,18 @@ private void timing(Runnable runnable, String message) { private void shootFormattedDebugMessage(int duplicated, int success, int error, int notFound) { - Webservice.REST_LOGGER.info("_".repeat(50)); - Webservice.REST_LOGGER.info(success + " games has been saved to the database."); + Webservice.REST_LOGGER.info(success + " game(s) has been saved to the database."); if (notFound > 0) { - Webservice.REST_LOGGER.warning(" | " + notFound + " games were not inserted"); + Webservice.REST_LOGGER.warning("> | " + notFound + " game(s) were not inserted"); } if (error > 0) { - Webservice.REST_LOGGER.warning(" | " + error + " games had errors"); + Webservice.REST_LOGGER.warning("> | " + error + " game(s) had errors"); } if (duplicated > 0) { - Webservice.REST_LOGGER.warning(" | " + duplicated + " games are duplicates"); + Webservice.REST_LOGGER.warning("> | " + duplicated + " game(s) are duplicates"); } - - Webservice.REST_LOGGER.info("_".repeat(100)); } }