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 1af9a18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ func dumpIsOk(errLog string) (err error) {
return err
}
// ignore warning
w := regexp.MustCompile(`[Warning] Using a password on the command line interface can be insecure`)
w := regexp.MustCompile(`\[Warning\] Using a password on the command line interface can be insecure`)
r := regexp.MustCompile(`Couldn't find table:`)
var lines []string
scanner := bufio.NewScanner(fd)
for scanner.Scan() {
l := scanner.Text()
if !r.MatchString(l) && lo.IsNotEmpty(l) && !w.MatchString(l) {
if !r.MatchString(l) && !w.MatchString(l) && lo.IsNotEmpty(l) {
lines = append(lines, l)
}
}
Expand Down

0 comments on commit 1af9a18

Please sign in to comment.