Added logs
This commit is contained in:
parent
257feb19fc
commit
579fc0fbd2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue