Skip to content

Commit

Permalink
Fixing logger info for AB >=25.2.19 (#1703)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Hank <[email protected]>
  • Loading branch information
mdhank and Michael Hank authored Aug 16, 2024
1 parent 08e716f commit 88cb11e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/xAH_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def __call__(self, parser, namespace, values, option_string=None):
else:
setter = 'setString'
getattr(driver.options(), setter)(getattr(ROOT.EL.Job, opt), getattr(args, opt))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt)))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, repr(getattr(ROOT.EL.Job, opt)), getattr(args, opt)))

elif (args.driver == "prun"):
driver = ROOT.EL.PrunDriver()
Expand All @@ -580,7 +580,7 @@ def __call__(self, parser, namespace, values, option_string=None):
else:
setter = 'setString'
getattr(driver.options(), setter)(getattr(ROOT.EL.Job, opt), getattr(args, opt))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt)))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, repr(getattr(ROOT.EL.Job, opt)), getattr(args, opt)))
nc_outputSampleNameStr = args.optGridOutputSampleName
driver.options().setString("nc_outputSampleName", nc_outputSampleNameStr)
xAH_logger.info("\t - driver.options().setString(nc_outputSampleName, {0:s})".format(nc_outputSampleNameStr))
Expand All @@ -600,7 +600,7 @@ def __call__(self, parser, namespace, values, option_string=None):
else:
setter = 'setString'
getattr(driver.options(), setter)(getattr(ROOT.EL.Job, opt), getattr(args, opt))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt)))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, repr(getattr(ROOT.EL.Job, opt)), getattr(args, opt)))

elif (args.driver == "lsf"):
driver = ROOT.EL.LSFDriver()
Expand All @@ -617,7 +617,7 @@ def __call__(self, parser, namespace, values, option_string=None):
else:
setter = 'setString'
getattr(driver.options(), setter)(getattr(ROOT.EL.Job, opt), getattr(args, opt))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt)))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, repr(getattr(ROOT.EL.Job, opt)), getattr(args, opt)))

elif (args.driver == "slurm"):
driver = ROOT.EL.SlurmDriver()
Expand Down Expand Up @@ -657,7 +657,7 @@ def __call__(self, parser, namespace, values, option_string=None):
else:
setter = 'setString'
getattr(driver.options(), setter)(getattr(ROOT.EL.Job, opt), getattr(args, opt))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, getattr(ROOT.EL.Job, opt), getattr(args, opt)))
xAH_logger.info("\t - driver.options().{0:s}({1:s}, {2})".format(setter, repr(getattr(ROOT.EL.Job, opt)), getattr(args, opt)))

xAH_logger.info("\tsubmit job")
if args.driver in ["prun","condor","lsf","slurm","local"] and not args.optBatchWait:
Expand Down

0 comments on commit 88cb11e

Please sign in to comment.