Skip to content

Commit

Permalink
Debug, log non-sensitive env vars on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbarnett91 committed Nov 30, 2023
1 parent 8b80981 commit 69431ef
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

}

0 comments on commit 69431ef

Please sign in to comment.