Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RegApp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janis Streib
RegApp
Commits
1e2e24f1
Commit
1e2e24f1
authored
2 years ago
by
Michael Burgardt
Committed by
Pierre Wolff
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ISSUE-203 Refactor audit actions in SshWorker.java
parent
17b744c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bwreg-service/src/main/java/edu/kit/scc/webreg/service/ssh/SshWorker.java
+4
-4
4 additions, 4 deletions
...c/main/java/edu/kit/scc/webreg/service/ssh/SshWorker.java
with
4 additions
and
4 deletions
bwreg-service/src/main/java/edu/kit/scc/webreg/service/ssh/SshWorker.java
+
4
−
4
View file @
1e2e24f1
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment