Skip to content

Commit 6db3c4b

Browse files
committed
also log command line options
1 parent 50c71cb commit 6db3c4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cwltool/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,11 @@ def formatTime(self, record, datefmt=None):
566566
return with_msecs
567567
prov_log_handler.setFormatter(ProvLogFormatter())
568568
_logger.addHandler(prov_log_handler)
569-
_logger.debug("[provenance] Logging to %s", log_file_io)
569+
_logger.debug(u"[provenance] Logging to %s", log_file_io)
570+
if argsl:
571+
# Log cwltool command line options to provenance file
572+
_logger.info("[cwltool] %s %s", sys.argv[0], u" ".join(argsl))
573+
_logger.debug(u"[cwltool] Arguments: %s", args)
570574

571575
if loadingContext is None:
572576
loadingContext = LoadingContext(vars(args))

0 commit comments

Comments
 (0)