diff --git a/digiarch/commands/identify.py b/digiarch/commands/identify.py index 643e194b..7e2393c5 100644 --- a/digiarch/commands/identify.py +++ b/digiarch/commands/identify.py @@ -155,12 +155,16 @@ def identify_original_file( ] if existing_file and not update: + Event.from_command(ctx, "skip", (existing_file.uuid, "original"), reason="exists").log( + INFO, + *loggers, + path=existing_file.relative_path, + ) return if existing_file and existing_file.lock and not ignore_lock: - Event.from_command(ctx, "skip", (existing_file.uuid, "original")).log( + Event.from_command(ctx, "skip", (existing_file.uuid, "original"), reason="locked").log( INFO, *loggers, - locked=True, path=existing_file.relative_path, ) return