Skip to content

Commit

Permalink
commands.extract:cmd_extract - fix repeated number of extracted files…
Browse files Browse the repository at this point in the history
… in "unpacked" log
  • Loading branch information
MatteoCampinoti94 committed Jan 23, 2025
1 parent 472d832 commit d7298da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion digiarch/commands/extract/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,13 @@ def cmd_extract(
(archive_file.uuid, "original"),
len(extracted_files_paths),
)
event.log(INFO, log_stdout, files=len(extracted_files_paths), path=archive_file.relative_path)
event.log(
INFO,
log_stdout,
show_args=["uuid"],
files=len(extracted_files_paths),
path=archive_file.relative_path,
)
db.log.insert(event)
except ExtractError as err:
handle_extract_error(ctx, db, archive_file, err, log_stdout)
Expand Down

0 comments on commit d7298da

Please sign in to comment.