Skip to content

Commit

Permalink
PR-1709 Log properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisSaldabols committed May 22, 2024
1 parent 51c956f commit 42f0b5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/folio/ncip/FolioNcipHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.charset.StandardCharsets;
import java.util.Iterator;
import java.util.Map;
Expand Down Expand Up @@ -308,8 +310,16 @@ public void initNcipProperties(RoutingContext context) throws Exception {
logger.fatal(e.getLocalizedMessage());
}

StringWriter writer = new StringWriter();
properties.list(new PrintWriter(writer));
logger.info("Tenant: " + tenant + " properties are " + writer.getBuffer().toString());

ncipProperties.put(tenant, properties);

StringWriter writer2 = new StringWriter();
ncipProperties.list(new PrintWriter(writer2));
logger.info("NCIP properties are " + writer2.getBuffer().toString());

}


Expand Down

0 comments on commit 42f0b5d

Please sign in to comment.