Skip to content

Commit d53b9ae

Browse files
committed
Log: print info on processes inputs and outputs.
Signed-off-by: kdesnos <[email protected]>
1 parent 03f7fb0 commit d53b9ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,14 @@ class TaskProcessor {
600600
return
601601
}
602602
session.addIgniter {
603-
log.debug "Starting process > $name"
603+
// Closure to get the (nested) list of param_type:param_name
604+
def getParamNamesAndTypes
605+
getParamNamesAndTypes = { paramList ->
606+
paramList.collect{param ->
607+
"${(param instanceof InParam)? param.getTypeName() : param.class.simpleName}:${(param !instanceof TupleInParam && param !instanceof TupleOutParam)? param.name : "[${getParamNamesAndTypes(param.getInner())}]"}"}.join(', ')
608+
}
609+
// Print process name with associated input and outputs
610+
log.debug "Starting process > $name (${getParamNamesAndTypes(getConfig().getInputs())}) -> (${getParamNamesAndTypes(getConfig().getOutputs())})"
604611
op.start()
605612
}
606613
}

0 commit comments

Comments
 (0)