|
|
@@ -1,7 +1,6 @@
|
|
|
package gorm
|
|
|
|
|
|
import (
|
|
|
- "fmt"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
@@ -93,8 +92,6 @@ func (repo *KubeEventRepository) CreateEvent(
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
- fmt.Println("COUNT IS", event.Name, count)
|
|
|
-
|
|
|
// if the count is greater than 500, remove the lowest-order event to implement a
|
|
|
// basic fixed-length buffer
|
|
|
if count >= 500 {
|
|
|
@@ -241,8 +238,6 @@ func (repo *KubeEventRepository) AppendSubEvent(event *models.KubeEvent, subEven
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- fmt.Println("COUNT IS (subevents)", event.Name, count)
|
|
|
-
|
|
|
// if the count is greater than 20, remove the lowest-order events to implement a
|
|
|
// basic fixed-length buffer
|
|
|
if count >= 20 {
|