Skip to content

Commit

Permalink
extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Dec 11, 2023
1 parent eaf443b commit f68528f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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.5</version>
<version>1.0.2.6</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,8 +50,7 @@ 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

// TODO: Possibly allow for unexpected column names and proceed with the columns
logger.info("parsed these column headers from LOA attachment {}", (Object[]) 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 f68528f

Please sign in to comment.