From 245035d27798c03dde829e55897ab10069561168 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Sun, 26 Feb 2023 14:59:44 +0800 Subject: [PATCH] [agent][executor]- bug - 11 --- .../io/wdd/agent/executor/thread/CommandExecLogCache.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agent/src/main/java/io/wdd/agent/executor/thread/CommandExecLogCache.java b/agent/src/main/java/io/wdd/agent/executor/thread/CommandExecLogCache.java index d6031c5..c6b1c2f 100644 --- a/agent/src/main/java/io/wdd/agent/executor/thread/CommandExecLogCache.java +++ b/agent/src/main/java/io/wdd/agent/executor/thread/CommandExecLogCache.java @@ -111,6 +111,12 @@ public class CommandExecLogCache { commandCachedLog.add("--------------- command result are as below --------------------"); commandCachedLog.add(""); + // 最为重要的一句,将内容放进去 + CachedCommandLogMap.put( + streamKey, + commandCachedLog + ); + log.debug("doCacheLog 开始从process的结果中获取日志缓存"); // read from input stream and store to the cacheArrayList