Skip to content
Snippets Groups Projects

ENH: setup logging and reporting for serverside execution

Merged Henrik tom Wörden requested to merge f-email-notify into dev
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -1035,7 +1035,7 @@ def _treat_deprecated_prefix(prefix, remove_prefix):
return remove_prefix
def _fix_file_paths(crawled_data):
def _fix_file_paths(crawled_data, remove_prefix):
for elem in crawled_data:
if isinstance(elem, db.File):
# correct the file path:
@@ -1148,7 +1148,7 @@ def crawler_main(crawled_directory_path: str,
debug_tree = DebugTree()
crawled_data = scan_directory(
crawled_directory_path, cfood_file_name, restricted_path, debug_tree=debug_tree)
_fix_file_paths(crawled_data)
_fix_file_paths(crawled_data, remove_prefix)
_check_record_types(crawled_data)
if provenance_file is not None and debug:
Loading