Skip to content

Commit

Permalink
fix(dbm-services): 错误分析dump日志 TencentBlueKing#9159
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Jan 21, 2025
1 parent c0b60bc commit ff5f924
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ func dumpIsOk(errLog string) (err error) {
scanner := bufio.NewScanner(fd)
for scanner.Scan() {
l := scanner.Text()
if !r.MatchString(l) && lo.IsNotEmpty(l) && !w.MatchString(l) {
if r.MatchString(l) || lo.IsNotEmpty(l) || w.MatchString(l) {
continue
} else {
lines = append(lines, l)
}
}
Expand Down

0 comments on commit ff5f924

Please sign in to comment.