diff --git a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/util/CheckMethod.java b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/util/CheckMethod.java index 069f448..08e2ccd 100755 --- a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/util/CheckMethod.java +++ b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/util/CheckMethod.java @@ -9,6 +9,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; +import java.util.Map; import java.util.Properties; import org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration.Configuration; @@ -186,9 +187,18 @@ public abstract class CheckMethod { this.logger.debug("session created."); + this.logger.debug("Session Config:"); + for (Object key: sshConfig.keySet()) { + this.logger.debug("{} = {} ", key, sshConfig.get(key)); + } + + + this.logger.debug("SSH Config: {}",sshConfig); session.setConfig(this.sshConfig); session.connect(); + this.logger.debug("Open Channel SFTP"); + this.logger.debug("Protocol: "+SFTP_PROTOCOL); Channel channel = session.openChannel(SFTP_PROTOCOL); channel.connect(); this.logger.debug("shell channel connected...."); @@ -207,6 +217,7 @@ public abstract class CheckMethod { session.disconnect(); } catch (Exception e) { + this.logger.error("Error in deleteFiles(): {} ",e.getLocalizedMessage(),e); throw new GenericException(e); }