Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RikaCelery committed Nov 7, 2024
1 parent 67bd9d0 commit ae0f3f2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"strconv"
"strings"

"github.com/sirupsen/logrus"

"github.com/wdvxdr1123/ZeroBot/message"
)

Expand Down Expand Up @@ -310,7 +308,6 @@ func patternMatch(ctx *Ctx, pattern Pattern, msgs []message.Segment) bool {
return false
}
patternState := make([]PatternParsed, len(pattern.segments))
logrus.Debugf("[pattern test] '%s' %v", message.Message(msgs).String(), pattern.segments)
j := 0
for i := range pattern.segments {
if j < len(msgs) && pattern.segments[i].matchType(msgs[j]) {
Expand All @@ -320,7 +317,6 @@ func patternMatch(ctx *Ctx, pattern Pattern, msgs []message.Segment) bool {
if pattern.segments[i].optional {
continue
}
logrus.Debugf("[pattern test] failed: '%s' %v", msgs[j], pattern.segments[i].DebugStr())
return false
}
j++
Expand Down

0 comments on commit ae0f3f2

Please sign in to comment.