Skip to content
Snippets Groups Projects
Commit 1e2e24f1 authored by Michael Burgardt's avatar Michael Burgardt Committed by Pierre Wolff
Browse files

ISSUE-203 Refactor audit actions in SshWorker.java

parent 17b744c6
No related branches found
No related tags found
No related merge requests found
......@@ -91,13 +91,13 @@ public class SshWorker {
}
logger.info("Sending input to host response: {}", response);
auditor.logAction("", "SEND SSH INPUT", sshHost,
"Input send successfully to host " + sshHost,
"Input send successfully to host " + sshHost,
AuditStatus.SUCCESS);
}
} catch (IOException e) {
logger.error("IOExcetion happened in SSH Session", e);
String message = "FAILED: Sending input to " + sshHost
+ " as " + sshUser + ": " + e.getMessage();
logger.error("IOExcetion happened in SSH Session on " + sshHost
+ " with user " + sshUser, e);
String message = "FAILED: Sending input to host: " + e.getMessage();
auditor.logAction("", "SEND SSH INPUT", sshHost, "Sendind input failed",
AuditStatus.FAIL);
throw new RegisterException(message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment