mirror of
https://github.com/outbackdingo/labca.git
synced 2026-03-22 03:43:59 +00:00
16 lines
770 B
Diff
16 lines
770 B
Diff
diff --git a/cmd/log-validator/main.go b/cmd/log-validator/main.go
|
|
index 24df67e90..565de0c3c 100644
|
|
--- a/cmd/log-validator/main.go
|
|
+++ b/cmd/log-validator/main.go
|
|
@@ -65,8 +65,8 @@ func lineValid(text string) error {
|
|
if strings.Contains(text, errorPrefix) {
|
|
return nil
|
|
}
|
|
- // Check the extracted checksum against the computed checksum
|
|
- if computedChecksum := blog.LogLineChecksum(line); checksum != computedChecksum {
|
|
+ // Check the extracted checksum against the computed checksum, but ignore "message repeated X times" lines
|
|
+ if computedChecksum := blog.LogLineChecksum(line); checksum != computedChecksum && checksum != "message" {
|
|
return fmt.Errorf("%s invalid checksum (expected %q, got %q)", errorPrefix, computedChecksum, checksum)
|
|
}
|
|
return nil
|