From 4043e9adb48eef8913ecf947cae00509d30331c2 Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Sat, 14 Sep 2024 02:28:15 +0900 Subject: [PATCH] html_tools/feat: Add logger for forest transplanting. --- changedetectionio/html_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py index 6ff4c4e6..20fbc035 100644 --- a/changedetectionio/html_tools.py +++ b/changedetectionio/html_tools.py @@ -11,6 +11,7 @@ from itertools import chain from elementpath import select as elementpath_select # xpath 2.0-3.1 from elementpath.xpath3 import XPath3Parser +from loguru import logger # HTML added to be sure each result matching a filter (.example) gets converted to a new line by Inscriptis @@ -136,6 +137,7 @@ def forest_transplanting(root): break if Is_fragment: + logger.debug("forest_transplanting is triggered.") new_root = etree.Element("new_root") root_siblings_preceding.reverse() for node in chain(root_siblings_preceding, [root], root_siblings):