Skip to content

Commit

Permalink
reduce logging verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrit Poelen committed Aug 23, 2023
1 parent 8c8061a commit 9a35bd7
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -28,8 +28,6 @@ public GeoNamesServiceImpl(ResourceService service) {
this.service = service;
}

private static final Logger LOG = LoggerFactory.getLogger(GeoNamesServiceImpl.class);

public static final TermImpl GEO_TERM_EARTH = new TermImpl(GEONAMES.getIdPrefix() + "6295630", "Earth");

private static Set<String> IGNORED_LOCALES = new TreeSet<String>() {{
Expand Down Expand Up @@ -274,11 +272,7 @@ private LatLng getCentroid(String geoNameTermOrLocale) throws IOException {
} else {
point = getCentroidForLocale(geoNameTermOrLocale);
}
if (point == null) {
if (!IGNORED_LOCALES.contains(geoNameTermOrLocale)) {
LOG.warn("failed find (lat,lng) for term/locale [" + geoNameTermOrLocale + "]");
}
} else {
if (point != null) {
pointCache.put(geoNameTermOrLocale, point);
}

Expand Down

0 comments on commit 9a35bd7

Please sign in to comment.