diff --git a/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java b/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java index ad479756..aaca2d14 100644 --- a/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java +++ b/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java @@ -85,4 +85,21 @@ public void registerFonts() { } } + @EventListener(ApplicationReadyEvent.class) + public void tempDebug() { + logVar("ANALYTICS_CONN_TIMEOUT_MS"); + logVar("ENABLE_GOOGLE_ANALYTICS"); + logVar("ENABLE_RATE_LIMITING"); + logVar("ENABLE_GOOGLE_ANALYTICS"); + logVar("HOME_PAGE_URL"); + logVar("RATE_LIMIT_CAPACITY"); + logVar("RATE_LIMIT_TIME_UNIT"); + logVar("RATE_LIMIT_TIME_VALUE"); + logVar("SHOW_START_PAGE"); + } + + private void logVar(String name) { + LOGGER.info("var {} is {}", name, System.getenv(name)); + } + }