Remove annoying log spam in sitemap retriever

This commit is contained in:
Viktor Lofgren 2023-06-30 17:08:35 +02:00
parent 11c26e700e
commit 7d86586594

View File

@ -7,6 +7,7 @@ import org.slf4j.LoggerFactory;
import javax.inject.Singleton;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.*;
@Singleton
@ -28,6 +29,11 @@ public class SitemapRetriever {
logger.debug("Unknown sitemap format: {}", sitemapUrl);
return Collections.emptyList();
}
catch (IOException io) {
logger.debug("Error fetching sitemap", io);
return Collections.emptyList();
}
catch (Exception ex) {
logger.error("Error fetching sitemap", ex);