Skip to content
Snippets Groups Projects
Commit 73972347 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: add debugging information

parent 988208cd
No related branches found
No related tags found
1 merge request!160STY: styling
Pipeline #41785 failed
......@@ -784,6 +784,8 @@ class Crawler(object):
for i in reversed(range(len(crawled_data))):
if not check_identical(crawled_data[i], identified_records[i]):
logger.debug("Sheduled update because of the folllowing diff:\n"
+ str(compare_entities(crawled_data[i], identified_records[i])))
actual_updates.append(crawled_data[i])
return actual_updates
......
......@@ -264,6 +264,8 @@ def scanner(items: list[StructureElement],
converters_path = []
for element in items:
element_path =os.path.join(*(structure_elements_path + [element.get_name()]))
logger.debug(f"Dealing with {element_path}")
for converter in converters:
# type is something like "matches files", replace isinstance with "type_matches"
......@@ -276,8 +278,7 @@ def scanner(items: list[StructureElement],
record_store_copy = record_store.create_scoped_copy()
# Create an entry for this matched structure element that contains the path:
general_store_copy[converter.name] = (
os.path.join(*(structure_elements_path + [element.get_name()])))
general_store_copy[converter.name] = element_path
# extracts values from structure element and stores them in the
# variable store
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment