From 1ad8f60e7c31d60c5cb151e89a1a906ca643c07d Mon Sep 17 00:00:00 2001 From: Russ Poetker Date: Fri, 6 Oct 2023 08:00:11 -0400 Subject: [PATCH] Fix logging config --- .../eclipse/pass/support/grant/cli/JhuGrantLoaderApp.java | 7 ++++++- .../pass-grant-cli/src/main/resources/logback.xml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pass-grant-loader/pass-grant-cli/src/main/java/org/eclipse/pass/support/grant/cli/JhuGrantLoaderApp.java b/pass-grant-loader/pass-grant-cli/src/main/java/org/eclipse/pass/support/grant/cli/JhuGrantLoaderApp.java index 38be9fb7..e0a04ee9 100644 --- a/pass-grant-loader/pass-grant-cli/src/main/java/org/eclipse/pass/support/grant/cli/JhuGrantLoaderApp.java +++ b/pass-grant-loader/pass-grant-cli/src/main/java/org/eclipse/pass/support/grant/cli/JhuGrantLoaderApp.java @@ -22,10 +22,14 @@ import org.eclipse.pass.support.grant.data.JhuPassInitUpdater; import org.eclipse.pass.support.grant.data.JhuPassUpdater; import org.eclipse.pass.support.grant.data.PassUpdater; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; class JhuGrantLoaderApp extends BaseGrantLoaderApp { - boolean init; + private static final Logger LOG = LoggerFactory.getLogger(JhuGrantLoaderApp.class); + + private final boolean init; JhuGrantLoaderApp(String startDate, String awardEndDate, boolean email, String mode, String action, String dataFileName, boolean init, String grant) { @@ -47,6 +51,7 @@ GrantConnector configureConnector(Properties connectionProperties, Properties po @Override PassUpdater configureUpdater() { if (init) { + LOG.warn("**Grant Loader running in init mode**"); return new JhuPassInitUpdater(); } return new JhuPassUpdater(); diff --git a/pass-grant-loader/pass-grant-cli/src/main/resources/logback.xml b/pass-grant-loader/pass-grant-cli/src/main/resources/logback.xml index 72a75f61..1565d143 100644 --- a/pass-grant-loader/pass-grant-cli/src/main/resources/logback.xml +++ b/pass-grant-loader/pass-grant-cli/src/main/resources/logback.xml @@ -27,4 +27,7 @@ + + + \ No newline at end of file