Skip to content

Commit

Permalink
add log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pgdurand committed Feb 2, 2021
1 parent d2e6001 commit 44e13ef
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,23 @@ public void saveResult() {
String fName = file.getName();
String fExt = fName.substring(fName.lastIndexOf('.')+1);
SROutput sro_to_save;
EZLogger.info(String.format("Preparing data to export (%d)", _iterationID));
if (_iterationID>=0)
sro_to_save = SRUtils.extractResult(_sro, _iterationID);
else
sro_to_save = _sro;
SRWriter writer;
//queries annotated with BCO is a particular feature, so handle that case
int i, size = sro_to_save.countIteration();
EZLogger.info(String.format("Checking query features (%d)", size));
boolean hasQueryAnnotation = false;
for (i = 0; i < size; i++) {// loop on iterations
if (sro_to_save.getIteration(i).getIterationQueryFeatureTable()!=null){
hasQueryAnnotation=true;
break;
}
}
EZLogger.info(String.format("Saving to file (%s)", fName));
switch(fExt){
case "csv":
//Use ArrayList specifically to avoid UnsuportedOperationException when
Expand Down Expand Up @@ -208,6 +211,7 @@ public void saveResult() {
}
finally {
EZEnvironment.setDefaultCursor();
EZLogger.info("Save done");
}
}
}

0 comments on commit 44e13ef

Please sign in to comment.