From 64a6547cf3345e7b1eaa97b843fa4631ccc7fa5c Mon Sep 17 00:00:00 2001 From: "chenyoulong20g@ict.ac.cn" Date: Tue, 11 Nov 2025 18:12:29 +0800 Subject: [PATCH] Improve command logging in Script class to include full command line when debugging --- utils/src/main/java/com/cloud/utils/script/Script.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/src/main/java/com/cloud/utils/script/Script.java b/utils/src/main/java/com/cloud/utils/script/Script.java index 3d9dd93c898..de11254b2c4 100644 --- a/utils/src/main/java/com/cloud/utils/script/Script.java +++ b/utils/src/main/java/com/cloud/utils/script/Script.java @@ -246,8 +246,8 @@ public class Script implements Callable { public String execute(OutputInterpreter interpreter) { String[] command = _command.toArray(new String[_command.size()]); String commandLine = buildCommandLine(command); - if (_logger.isDebugEnabled() && !avoidLoggingCommand) { - _logger.debug(String.format("Executing command [%s].", commandLine.split(KeyStoreUtils.KS_FILENAME)[0])); + if (_logger.isDebugEnabled() ) { + _logger.debug(String.format("Executing command [%s].", commandLine)); } try {