Change some of the amazon fields logs to debug
This commit is contained in:
+11
-11
@@ -193,7 +193,7 @@ public class AmazonBookParser implements BookParser {
|
|||||||
if (subtitleElement != null) {
|
if (subtitleElement != null) {
|
||||||
return subtitleElement.text();
|
return subtitleElement.text();
|
||||||
}
|
}
|
||||||
log.warn("Error fetching subtitle: Element not found.");
|
log.debug("Error fetching subtitle: Element not found.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,9 +235,9 @@ public class AmazonBookParser implements BookParser {
|
|||||||
if (isbn10Element != null) {
|
if (isbn10Element != null) {
|
||||||
return isbn10Element.text();
|
return isbn10Element.text();
|
||||||
}
|
}
|
||||||
log.warn("Error fetching ISBN-10: Element not found.");
|
log.debug("Error fetching ISBN-10: Element not found.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Error fetching ISBN-10: {}", e.getMessage());
|
log.debug("Error fetching ISBN-10: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -248,9 +248,9 @@ public class AmazonBookParser implements BookParser {
|
|||||||
if (isbn13Element != null) {
|
if (isbn13Element != null) {
|
||||||
return isbn13Element.text();
|
return isbn13Element.text();
|
||||||
}
|
}
|
||||||
log.warn("Error fetching ISBN-13: Element not found.");
|
log.debug("Error fetching ISBN-13: Element not found.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Error fetching ISBN-13: {}", e.getMessage());
|
log.debug("Error fetching ISBN-13: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -298,10 +298,10 @@ public class AmazonBookParser implements BookParser {
|
|||||||
if (seriesNameElement != null) {
|
if (seriesNameElement != null) {
|
||||||
return seriesNameElement.text();
|
return seriesNameElement.text();
|
||||||
} else {
|
} else {
|
||||||
log.warn("Error fetching series name: Element not found.");
|
log.debug("Error fetching series name: Element not found.");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Error fetching series name: {}", e.getMessage());
|
log.debug("Error fetching series name: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -316,10 +316,10 @@ public class AmazonBookParser implements BookParser {
|
|||||||
return Integer.parseInt(parts[1]);
|
return Integer.parseInt(parts[1]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.warn("Error fetching series number: Element not found.");
|
log.debug("Error fetching series number: Element not found.");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Error fetching series number: {}", e.getMessage());
|
log.debug("Error fetching series number: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -334,10 +334,10 @@ public class AmazonBookParser implements BookParser {
|
|||||||
return Integer.parseInt(parts[3]);
|
return Integer.parseInt(parts[3]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.warn("Error fetching series total: Element not found.");
|
log.debug("Error fetching series total: Element not found.");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warn("Error fetching series total: {}", e.getMessage());
|
log.debug("Error fetching series total: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user