mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 12:58:24 +08:00
update
This commit is contained in:
parent
3e9ca11f90
commit
6f28db74bf
@ -134,7 +134,7 @@ public class DockerSwarmServiceController extends BaseServerController {
|
||||
//
|
||||
String uuid = IdUtil.fastSimpleUUID();
|
||||
File file = FileUtil.file(ServerConfigBean.getInstance().getUserTempPath(), "docker-swarm-log", uuid + ".log");
|
||||
LogRecorder logRecorder = LogRecorder.builder().file(file).build();
|
||||
try (LogRecorder logRecorder = LogRecorder.builder().file(file).build()) {
|
||||
logRecorder.info("start pull {}", dataId);
|
||||
Consumer<String> logConsumer = logRecorder::append;
|
||||
parameter.put("charset", CharsetUtil.CHARSET_UTF_8);
|
||||
@ -148,6 +148,7 @@ public class DockerSwarmServiceController extends BaseServerController {
|
||||
}
|
||||
logRecorder.info("pull end");
|
||||
});
|
||||
}
|
||||
return JsonMessage.getString(200, "开始拉取", uuid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user