Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Jan 4, 2024
1 parent 341fc94 commit dd13d7a
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,19 @@ public class TimeseriesProcessor implements HpdsProcessor {

private AbstractProcessor abstractProcessor;

@Value("${ID_CUBE_NAME:NONE}")
private String ID_CUBE_NAME;
private final String ID_CUBE_NAME;

@Value("${ID_BATCH_SIZE:0}")
private int ID_BATCH_SIZE;
private final int ID_BATCH_SIZE;

@Value("${CACHE_SIZE:100}")
private int CACHE_SIZE;
private final int CACHE_SIZE;

@Autowired
public TimeseriesProcessor(AbstractProcessor abstractProcessor) {
this.abstractProcessor = abstractProcessor;
// todo: handle these via spring annotations
CACHE_SIZE = Integer.parseInt(System.getProperty("CACHE_SIZE", "100"));
ID_BATCH_SIZE = Integer.parseInt(System.getProperty("ID_BATCH_SIZE", "0"));
ID_CUBE_NAME = System.getProperty("ID_CUBE_NAME", "NONE");
}

/**
Expand Down Expand Up @@ -104,7 +105,7 @@ private void addDataForConcepts(Set<String> pathList, TreeSet<Integer> idList, A
log.warn("Attempting export of non-existant concept: " + conceptPath);
continue;
}
log.debug("Exporting " + conceptPath);
log.info("Exporting " + conceptPath);
List<?> valuesForKeys = cube.getValuesForKeys(idList);
for (Object kvObj : valuesForKeys) {
if (cube.isStringType()) {
Expand Down

0 comments on commit dd13d7a

Please sign in to comment.