diff --git a/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy b/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy index d096e678e6..3df90bc561 100644 --- a/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy @@ -30,6 +30,7 @@ import groovy.json.JsonSlurper import groovy.transform.CompileStatic import groovy.transform.Memoized import groovy.util.logging.Slf4j +import org.slf4j.LoggerFactory import groovyx.gpars.GParsConfig import nextflow.BuildInfo import nextflow.NF @@ -355,7 +356,8 @@ class CmdRun extends CmdBase implements HubOptions { final isTowerEnabled = config.navigate('tower.enabled') as Boolean final isDataEnabled = config.navigate("lineage.enabled") as Boolean - if( isTowerEnabled || isDataEnabled || log.isTraceEnabled() ) + + if( isTowerEnabled || isDataEnabled || LoggerFactory.getLogger(nextflow.config.ConfigBuilder).isTraceEnabled() ) runner.session.resolvedConfig = ConfigBuilder.resolveConfig(scriptFile.parent, this) // note config files are collected during the build process // this line should be after `ConfigBuilder#build` diff --git a/plugins/nf-google/src/test/nextflow/cloud/google/batch/logging/BatchLoggingTest.groovy b/plugins/nf-google/src/test/nextflow/cloud/google/batch/logging/BatchLoggingTest.groovy index 271f2b86ec..4da7f85f2c 100644 --- a/plugins/nf-google/src/test/nextflow/cloud/google/batch/logging/BatchLoggingTest.groovy +++ b/plugins/nf-google/src/test/nextflow/cloud/google/batch/logging/BatchLoggingTest.groovy @@ -42,6 +42,7 @@ import spock.lang.Timeout @Slf4j class BatchLoggingTest extends Specification { + @Requires({System.getenv('GOOGLE_APPLICATION_CREDENTIALS')}) def 'should parse stdout and stderr' () { given: def OUT_ENTRY1 = LogEntry.newBuilder(StringPayload.of('No user sessions are running outdated binaries.\n')).setSeverity(Severity.INFO).build()