Skip to content

Commit 1bdf2eb

Browse files
author
Dominick Leppich
committed
fix: log direction changes
1 parent b30031c commit 1bdf2eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

migration/lib/mets_manipulator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def process_vocabulary_reference_by_value(self, node):
234234
new_value = self.ctx.extract_preferred_language(translated_main_values)
235235

236236
#dump_node(node)
237-
logging.warn(f'Relation [{vocabulary_name}] is saved in the wrong direction, correct direction found and corrected: "{old_value}" -> "{new_value}"')
237+
warn_message = f'Relation [{vocabulary_name}] is saved in the wrong direction, correct direction found and corrected: "{old_value}" -> "{new_value}"'
238+
logging.warn(warn_message)
239+
self.ctx.log_issue(self.file_path, warn_message)
238240
node.text = new_value
239241
else:
240242
logging.debug(f'Relation [{vocabulary_name}] value "{value}" found in column "{inverse_search_field}", keeping as is')

0 commit comments

Comments
 (0)