Skip to content

Commit

Permalink
Fix logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Oct 6, 2023
1 parent 5fb0d5b commit 1ad8f60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@
<logger name="org.eclipse.pass" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.eclipse.pass.support.grant.data.DifferenceLogger" additivity="false" level="INFO">
<appender-ref ref="STDOUT"/>
</logger>
</configuration>

0 comments on commit 1ad8f60

Please sign in to comment.