-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: (drop) Add extra logging for debugging
Signed-off-by: Alberto Miranda <[email protected]>
- Loading branch information
1 parent
09138e4
commit 6fc8fbe
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
} | ||
|