Skip to content

Commit

Permalink
chore: (drop) Add extra logging for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Miranda <[email protected]>
  • Loading branch information
alberto-miranda committed Dec 17, 2024
1 parent 09138e4 commit 6fc8fbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@

package nextflow.fusion


import groovy.util.logging.Slf4j
import nextflow.plugin.Plugins
/**
* Provider strategy for {@link FusionEnv}
*
* @author Paolo Di Tommaso <[email protected]>
*/
@Slf4j
class FusionEnvProvider {

Map<String,String> getEnvironment(String scheme) {
final config = FusionConfig.getConfig()
final list = Plugins.getExtensions(FusionEnv)
final result = new HashMap<String,String>()
for( FusionEnv it : list ) {
log.debug("Loading environment from plugin: ${it.getClass().name}")
final env = it.getEnvironment(scheme,config)
if( env ) result.putAll(env)
}
Expand Down

0 comments on commit 6fc8fbe

Please sign in to comment.