Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Dec 11, 2023
1 parent f68528f commit ae31c29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.milmove.trdmlambda</groupId>
<artifactId>trdm-lambda</artifactId>
<version>1.0.2.6</version>
<version>1.0.2.7</version>
<name>trdm java spring interface</name>
<description>Project for deploying a Java TRDM interfacer for TGET data.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public List<LineOfAccounting> parse(byte[] fileContent, XMLGregorianCalendar trd
Scanner scanner = new Scanner(new ByteArrayInputStream(fileContent));
logger.info("skipping the first line and then gathering headers");
String[] columnHeaders = scanner.nextLine().split("\\|"); // Skip first line and gather headers immediately
logger.info("parsed these column headers from LOA attachment {}", (Object[]) columnHeaders); // TODO: Possibly allow for unexpected column names and proceed with the columns
logger.info("parsed these column headers from LOA attachment {}", Arrays.toString(columnHeaders));
// TODO: Possibly allow for unexpected column names and proceed with the columns
// we are familiar with. This will be a must for LOA.
if (!Arrays.equals(expectedColumnNames, columnHeaders)) {
String message = String.format("Column headers do not match expected format. Received %s and expected %s",
Expand Down

0 comments on commit ae31c29

Please sign in to comment.