Skip to content

Commit

Permalink
#10 perform optional check for export.items.filter.dateCreated
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeach47 committed Aug 22, 2018
1 parent 6239ab9 commit 2216a94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ private void checkConfigsExportItems() {
}
}
checkConfig(EXPORT_ITEMS_COLUMN_FORMAT, true, true);
checkConfig(EXPORT_ITEMS_FILTER_DATE_CREATED, true, false);
checkConfig(EXPORT_ITEMS_ATTACHMENT_PATH_TEMPLATE, true, true);
}

Expand All @@ -188,7 +189,8 @@ private void checkConfig(String key, boolean displayValue, boolean required) {
String value = displayValue ? store.getProperty(key) : "****";
LOGGER.info("Found property [{}]=[{}].", key, value);
} else {
LOGGER.info("Unable to find required property [{}] in {}.", key, filepath);
String state = required ? "required" : "optional";
LOGGER.info("Unable to find {} property [{}] in {}.", state, key, filepath);
if(required) {
validConfig = false;
}
Expand Down

0 comments on commit 2216a94

Please sign in to comment.