Skip to content

Commit

Permalink
Explicitly don't match username on per-user logs to avoid breaking on…
Browse files Browse the repository at this point in the history
… name changes
  • Loading branch information
Mm2PL committed Jul 25, 2022
1 parent b160f71 commit 6b138b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/justgrep/justgrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ func main() {
os.Exit(1)
}
}
// fix name changes and USERNOTICEs not showing up when using per-user log endpoint
if *args.user != "" && !(*args.userIsRegex) {
filter.UserMatchType = justgrep.DontMatch
}

progress := &justgrep.ProgressState{
TotalResults: make([]int, justgrep.ResultCount),
Expand Down

0 comments on commit 6b138b9

Please sign in to comment.