Skip to content

Commit

Permalink
fix: Configure nvd.api.delay default (#6112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Nov 22, 2023
2 parents 6033f62 + 606d024 commit 0b86bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private boolean processApi() throws UpdateException {
try {
delay = settings.getLong(Settings.KEYS.NVD_API_DELAY);
} catch (InvalidSettingException ex) {
LOGGER.debug("Invalid setting `NVD_API_DELAY`?");
LOGGER.warn("Invalid setting `NVD_API_DELAY`? ({}), using default delay", settings.getString(Settings.KEYS.NVD_API_DELAY));
}
if (delay > 0) {
builder.withDelay(delay);
Expand Down
1 change: 1 addition & 0 deletions core/src/main/resources/dependencycheck.properties
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ proxy.disableSchemas=true

nvd.api.check.validforhours=4
nvd.api.datafeed.validfordays=7
nvd.api.delay=0
#nvd.api.datafeed.url=https://example.com/nvd-cache/
#nvd.api.datafeed.user=
#nvd.api.datafeed.password=
Expand Down

0 comments on commit 0b86bca

Please sign in to comment.