Skip to content

Commit

Permalink
Merge pull request #126 from European-XFEL/match-log
Browse files Browse the repository at this point in the history
Log the --match argument during reprocessing as well
  • Loading branch information
JamesWrigley authored Nov 2, 2023
2 parents 842a567 + 7bda027 commit bd9f473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion damnit/backend/extract_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def reprocess(runs, proposal=None, match=(), mock=False):
logging.getLogger().addHandler(file_handler)
try:
log.info("\n\n----- Reprocessing r%s (p%s) -----", run, prop)
log.info(f"match={match}")
extr.extract_and_ingest(prop, run, match=match, mock=mock, tee_output=log_path)
except Exception:
log.error("Exception while extracting p%s r%s", run, prop, exc_info=True)
Expand All @@ -383,7 +384,7 @@ def reprocess(runs, proposal=None, match=(), mock=False):
logging.getLogger('kafka').setLevel(logging.WARNING)

print(f"\n----- Processing r{args.run} (p{args.proposal}) -----", file=sys.stderr)
log.info(f"{args.run_data=}, {args.match=}")
log.info(f"run_data={args.run_data}, match={args.match}")
if args.cluster_job:
log.info("Extracting cluster variables in Slurm job %s on %s",
os.environ.get('SLURM_JOB_ID', '?'), socket.gethostname())
Expand Down

0 comments on commit bd9f473

Please sign in to comment.