Skip to content

Commit

Permalink
Use logging template
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Sep 17, 2023
1 parent b821f05 commit a0c4836
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ public void contextInitialized(ServletContextEvent event) {
}
}
}
logger.info("Found sitemap index at " + url + " containing " + count + " "
+ (count == 1 ? "sitemap" : "sitemaps"));
logger.log(Level.INFO, "Found sitemap index at {0} containing {1} {2}",
new Object[]{url, count, count == 1 ? "sitemap" : "sitemaps"});
}
JAR_SITEMAP_INDEXES.context(event.getServletContext()).set(jarSitemapIndexes);
} catch (IOException e) {
Expand Down

0 comments on commit a0c4836

Please sign in to comment.