Skip to content

Commit

Permalink
Fix bug where NOTIFICATION_INTERVAL wasn't added to configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
shayaantx committed Jan 10, 2024
1 parent 2ab7f24 commit 0ea239a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ if [ ! -e "$propertiesFile" ]; then
[[ ! -z "${EXISTING_ITEM_PATHS_BLACKLIST}" ]] && addConfiguration "existing-item-paths-blacklist" "${EXISTING_ITEM_PATHS_BLACKLIST}" "${propertiesFile}"
[[ ! -z "${STATUS_ENDPOINTS}" ]] && addConfiguration "status-endpoints" "${STATUS_ENDPOINTS}" "${propertiesFile}"
[[ ! -z "${LOG_LEVEL}" ]] && addConfiguration "log-level" "${LOG_LEVEL}" "${propertiesFile}"
[[ ! -z "${NOTIFICATION_INTERVAL}" ]] && addConfiguration "notification-interval" "${NOTIFICATION_INTERVAL}" "${propertiesFile}"

addConfiguration "max-downloads-to-show" "${MAX_DOWNLOADS_TO_SHOW:-20}" "${propertiesFile}"
addConfiguration "max-results-to-show" "${MAX_RESULTS_TO_SHOW:-20}" "${propertiesFile}"
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/botdarr/api/ApiRequests.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public int getNotificationInterval() {
String notificationInterval = Config.getProperty(Config.Constants.NOTIFICATION_INTERVAL);
if (!Strings.isEmpty(notificationInterval)) {
try {
LOGGER.info("Found notification interval " + notificationInterval);
return Integer.parseInt(notificationInterval);
} catch (NumberFormatException e) {
LOGGER.error("Invalid notification interval configuration", e);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.6.12
5.6.13

0 comments on commit 0ea239a

Please sign in to comment.