From 02e4e1adbc7c74e4ccc18ec46f9b63a7ac65affa Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Thu, 23 Nov 2017 17:05:45 +0100 Subject: [PATCH] optimize logging --- hsarback/src/de/hsadmin/core/qserv/CommandShell.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hsarback/src/de/hsadmin/core/qserv/CommandShell.java b/hsarback/src/de/hsadmin/core/qserv/CommandShell.java index 363b42a..e7395b4 100644 --- a/hsarback/src/de/hsadmin/core/qserv/CommandShell.java +++ b/hsarback/src/de/hsadmin/core/qserv/CommandShell.java @@ -27,8 +27,11 @@ public class CommandShell { if (stdInput != null && !"newusers".equals(logCommand)) { if (logCommand != null && (logCommand.startsWith("newusers") || logCommand.startsWith("chpasswd"))) { // escape new password ! - final String[] strings = stdInput.split(":", 3); - logCommand += "< 2) { + logCommand += strings[2] + "EOF"; + } } else { logCommand += "<