mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
log exceptions in trace level only
This commit is contained in:
@@ -67,7 +67,8 @@ public class DefaultFaviconFetcher extends AbstractFaviconFetcher {
|
|||||||
bytes = result.getContent();
|
bytes = result.getContent();
|
||||||
contentType = result.getContentType();
|
contentType = result.getContentType();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Failed to retrieve iconAtRoot for url {}: ", url, e);
|
log.debug("Failed to retrieve iconAtRoot for url {}: ", url);
|
||||||
|
log.trace("Failed to retrieve iconAtRoot for url {}: ", url, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isValidIconResponse(bytes, contentType)) {
|
if (!isValidIconResponse(bytes, contentType)) {
|
||||||
@@ -83,7 +84,8 @@ public class DefaultFaviconFetcher extends AbstractFaviconFetcher {
|
|||||||
HttpResult result = getter.getBinary(url, TIMEOUT);
|
HttpResult result = getter.getBinary(url, TIMEOUT);
|
||||||
doc = Jsoup.parse(new String(result.getContent()), url);
|
doc = Jsoup.parse(new String(result.getContent()), url);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Failed to retrieve page to find icon", e);
|
log.debug("Failed to retrieve page to find icon");
|
||||||
|
log.trace("Failed to retrieve page to find icon", e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +111,8 @@ public class DefaultFaviconFetcher extends AbstractFaviconFetcher {
|
|||||||
bytes = result.getContent();
|
bytes = result.getContent();
|
||||||
contentType = result.getContentType();
|
contentType = result.getContentType();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Failed to retrieve icon found in page {}", href, e);
|
log.debug("Failed to retrieve icon found in page {}", href);
|
||||||
|
log.trace("Failed to retrieve icon found in page {}", href, e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user