[agent][executor]- bug

This commit is contained in:
IceDerce
2023-02-25 17:17:08 +08:00
committed by zeaslity
parent 1f48d1e837
commit cdf10db1be
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,6 @@ public class CommandExecutor {
); );
} }
// 日志操作,如果需要显示回传,需要将日志发送回相应的 // 日志操作,如果需要显示回传,需要将日志发送回相应的
collectCommandLogAndRepeat( collectCommandLogAndRepeat(
streamKey, streamKey,
@@ -216,7 +215,6 @@ public class CommandExecutor {
} }
} }
}; };
} }

View File

@@ -37,6 +37,8 @@ public class CommandExecLogCache {
*/ */
public void cacheLog(String streamKey, Process process) { public void cacheLog(String streamKey, Process process) {
Assert.notNull(process,"命令执行为空!");
ArrayList<String> commandCachedLog = new ArrayList<>(128); ArrayList<String> commandCachedLog = new ArrayList<>(128);
String execCommandString = String.format( String execCommandString = String.format(