Skip to content

Commit 2eb35bb

Browse files
committed
'archive': fix bug with logging file for 'staging' to 'final' archive.
1 parent c6f4e26 commit 2eb35bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

auto_process_ngs/commands/archive_cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,14 @@ def archive(ap,archive_dir=None,platform=None,year=None,
488488
# Add to logging file
489489
if logging_file is not None:
490490
print(f"Adding details to logging file: {logging_file}")
491-
run_details = report_concise(ap)
491+
run_details = report_concise(AutoProcess(os.path.join(archive_dir, final_dest)))
492492
log_data_cmd = Command("log_seq_data.sh",
493493
logging_file,
494494
"-u",
495495
os.path.join(archive_dir,final_dest),
496496
run_details)
497+
print(f"Running {log_data_cmd}")
497498
if not dry_run:
498-
print(f"Running {log_data_cmd}")
499499
status = log_data_cmd.run_subprocess()
500500
if status != 0:
501501
logger.warning(f"Logging run to {logging_file} failed "

0 commit comments

Comments
 (0)