Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main/java/com/plugin/sshjplugin/model/SSHJExec.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@ public void execute(SSHClient ssh) {
" (value length: " + entry.getValue().length() + ") for host: " + getHostname());
} catch (ConnectionException e) {
failureCount++;
pluginLogger.log(2, "["+getPluginName()+"] Failed to set SSH environment variable: " + entry.getKey() +
pluginLogger.log(3, "["+getPluginName()+"] Failed to set SSH environment variable: " + entry.getKey() +
" for host: " + getHostname() + ". Exception: " + e.getClass().getSimpleName() + ": " + e.getMessage());
Comment thread
jjtoth marked this conversation as resolved.
if (e.getCause() != null) {
pluginLogger.log(2, "["+getPluginName()+"] Caused by: " + e.getCause().getClass().getSimpleName() + ": " + e.getCause().getMessage());
pluginLogger.log(3, "["+getPluginName()+"] Caused by: " + e.getCause().getClass().getSimpleName() + ": " + e.getCause().getMessage());
}
} catch (TransportException e) {
failureCount++;
pluginLogger.log(2, "["+getPluginName()+"] Failed to set SSH environment variable: " + entry.getKey() +
pluginLogger.log(3, "["+getPluginName()+"] Failed to set SSH environment variable: " + entry.getKey() +
" for host: " + getHostname() + ". TransportException: " + e.getClass().getSimpleName() + ": " + e.getMessage());
Comment thread
jjtoth marked this conversation as resolved.
if (e.getCause() != null) {
pluginLogger.log(2, "["+getPluginName()+"] Caused by: " + e.getCause().getClass().getSimpleName() + ": " + e.getCause().getMessage());
pluginLogger.log(3, "["+getPluginName()+"] Caused by: " + e.getCause().getClass().getSimpleName() + ": " + e.getCause().getMessage());
}
}
}

if (failureCount > 0) {
pluginLogger.log(2, "["+getPluginName()+"] Environment variable setting completed for host: " + getHostname() +
pluginLogger.log(3, "["+getPluginName()+"] Environment variable setting completed for host: " + getHostname() +
". Success: " + successCount + ", Failed: " + failureCount);
Comment thread
jjtoth marked this conversation as resolved.
} else {
pluginLogger.log(3, "["+getPluginName()+"] Successfully set all " + envVars.size() +
Expand Down
Loading