Skip to content

Commit 2776f9f

Browse files
committed
log file annotation in RO manifest
Also avoid noisy warning that happens for any input files
1 parent ac23952 commit 2776f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/provenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ def open_log_file_for_activity(self, uuid_uri): # type: (Text) -> IO
10261026
name = "activity"
10271027
p = os.path.join(LOGS, "%s.%s.txt" % (name, activity_uuid))
10281028
_logger.debug("[provenance] Opening log file for %s: %s" % (name, p))
1029+
self.add_annotation(activity_uuid.urn, [p], CWLPROV["log"].uri)
10291030
return self.write_bag_file(p)
10301031

10311032
def _finalize(self): # type: () -> None
@@ -1567,8 +1568,7 @@ def _relativise_files(self, structure):
15671568
if not relative_path and "location" in structure:
15681569
# Register in RO; but why was this not picked
15691570
# up by used_artefacts?
1570-
_logger.warning("File not previously registered in RO: %s",
1571-
yaml.dump(structure))
1571+
_logger.info("Adding to RO %s", structure["location"])
15721572
fsaccess = self.make_fs_access("")
15731573
with fsaccess.open(structure["location"], "rb") as fp:
15741574
relative_path = self.add_data_file(fp)

0 commit comments

Comments
 (0)