mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
[Improvement-14052][Log] Remove the useless filter in getAppIdsFromLogFile (#14053)
This commit is contained in:
parent
f269ccbd4a
commit
84edea7593
@ -164,10 +164,7 @@ public class LogUtils {
|
||||
}
|
||||
Set<String> appIds = new HashSet<>();
|
||||
try (Stream<String> stream = Files.lines(Paths.get(logPath))) {
|
||||
stream.filter(line -> {
|
||||
Matcher matcher = APPLICATION_REGEX.matcher(line);
|
||||
return matcher.find();
|
||||
}).forEach(line -> {
|
||||
stream.forEach(line -> {
|
||||
Matcher matcher = APPLICATION_REGEX.matcher(line);
|
||||
if (matcher.find()) {
|
||||
String appId = matcher.group();
|
||||
|
Loading…
Reference in New Issue
Block a user