Skip to content

Commit

Permalink
Clarify geoip database loader log message (#77391) (#79475)
Browse files Browse the repository at this point in the history
  • Loading branch information
danhermann authored Oct 19, 2021
1 parent f242f4f commit 28eb464
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,13 @@ void retrieveAndUpdateDatabase(String databaseName, GeoIpTaskState.Metadata meta

void updateDatabase(String databaseFileName, String recordedMd5, Path file) {
try {
LOGGER.info("database file changed [{}], reload database...", file);
LOGGER.debug("starting reload of changed geoip database file [{}]", file);
DatabaseReaderLazyLoader loader = new DatabaseReaderLazyLoader(cache, file, recordedMd5);
DatabaseReaderLazyLoader existing = databases.put(databaseFileName, loader);
if (existing != null) {
existing.close();
}
LOGGER.info("successfully reloaded changed geoip database file [{}]", file);
} catch (Exception e) {
LOGGER.error((Supplier<?>) () -> new ParameterizedMessage("failed to update database [{}]", databaseFileName), e);
}
Expand Down

0 comments on commit 28eb464

Please sign in to comment.