diff --git a/src/main/java/com/plugin/sshjplugin/model/SSHJExec.java b/src/main/java/com/plugin/sshjplugin/model/SSHJExec.java index 65e1449..c236d3c 100644 --- a/src/main/java/com/plugin/sshjplugin/model/SSHJExec.java +++ b/src/main/java/com/plugin/sshjplugin/model/SSHJExec.java @@ -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()); 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()); 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); } else { pluginLogger.log(3, "["+getPluginName()+"] Successfully set all " + envVars.size() +