Skip to content

Commit

Permalink
Update logging level and add key details in PreferencesHistoryManager
Browse files Browse the repository at this point in the history
The logging level in PreferencesHistoryManager has been changed from info to finest. Additionally, the key related to the stored and loaded history items has been added to the log messages for more efficient debugging.
  • Loading branch information
leewyatt committed May 31, 2024
1 parent 477bc37 commit 5c42baf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected void storeHistory() {
.map(converter::toString)
.collect(Collectors.joining(DELIMITER));
preferences.put(key, result);
LOG.info("Stored history items.");
LOG.finest(String.format("Stored history items with key: '%s'.", key));
}

/**
Expand All @@ -75,6 +75,6 @@ protected void loadHistory() {
.map(converter::fromString)
.toList());
}
LOG.info("Loaded history items.");
LOG.finest(String.format("Loaded history items with key: '%s'.", key));
}
}

0 comments on commit 5c42baf

Please sign in to comment.