Remove annoying log spam in sitemap retriever
This commit is contained in:
parent
11c26e700e
commit
7d86586594
@ -7,6 +7,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
import javax.inject.Singleton;
|
import javax.inject.Singleton;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
@ -28,6 +29,11 @@ public class SitemapRetriever {
|
|||||||
logger.debug("Unknown sitemap format: {}", sitemapUrl);
|
logger.debug("Unknown sitemap format: {}", sitemapUrl);
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
catch (IOException io) {
|
||||||
|
logger.debug("Error fetching sitemap", io);
|
||||||
|
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
logger.error("Error fetching sitemap", ex);
|
logger.error("Error fetching sitemap", ex);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user