Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Aug 13, 2022
1 parent e632928 commit aa380d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class ModuleBundle {
attrs.isRegularFile() ? attrs.size() : 0,
attrs.lastModifiedTime().toMillis(),
Integer.toOctalString(file.getPermissionsMode()) ]
log.debug "Module bundle entry=$meta"
log.trace "Module bundle entry=$meta"
return meta
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,19 @@ class WaveCmdCli implements PluginAbstractExec {
}

protected void getContainer(List<String> args) {
final image = args.pop()
if( !image )
if( !args )
throw new AbortOperationException("Missing container image - usage: nextflow plugin exec nf-wave get-container <image>")
final image = args.pop()
final target = resolveTargetImage(image)
log.info """\
Source container: $image
Waved container: $target""".stripIndent()
}

protected void runContainer(List<String> args) {
final image = args.pop()
if( !image )
if( !args )
throw new AbortOperationException("Missing container image - usage: nextflow plugin exec nf-wave container-run <image>")

final image = args.pop()
final target = resolveTargetImage(image)
log.info "Resolved image: '$image' => '$target'"
final containerConfig = getSession().getContainerConfig()
Expand Down

0 comments on commit aa380d5

Please sign in to comment.