Skip to content

Commit

Permalink
Adding log message for error caught by linter (#309)
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Sipe <kensipe@gmail.com>
  • Loading branch information
kensipe authored Jul 14, 2021
1 parent 9b91307 commit 1a31524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/test/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

petname "github.com/dustinkirkland/golang-petname"
funk "github.com/thoas/go-funk"
"github.com/thoas/go-funk"
corev1 "k8s.io/api/core/v1"
eventsv1 "k8s.io/api/events/v1"
eventsbeta1 "k8s.io/api/events/v1beta1"
Expand Down Expand Up @@ -173,6 +173,9 @@ func (t *Case) CollectEvents(namespace string) {
if err != nil {
t.Logger.Log("Trying with events corev1 API...")
err = t.collectEventsCoreV1(cl, namespace)
if err != nil {
t.Logger.Log("All event APIs failed")
}
}
}
}
Expand Down

0 comments on commit 1a31524

Please sign in to comment.