Skip to content

Commit 9a1b73b

Browse files
committed
fix: call to logger with odd key/value params
1 parent ad72136 commit 9a1b73b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linters:
2222
- govet
2323
- ineffassign
2424
#- lll
25+
- loggercheck
2526
#- misspell
2627
- nolintlint
2728
#- prealloc

core/server/inventory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func getObjectsWithChildren(ctx context.Context, defaultNS string, objects []*un
287287
if !ok {
288288
namespaced, err = apiutil.IsObjectNamespaced(&obj, k8sClient.Scheme(), k8sClient.RESTMapper())
289289
if err != nil {
290-
logger.Error(err, "failed to determine if %s is namespace scoped", obj.GetObjectKind().GroupVersionKind().Kind)
290+
logger.Error(err, "failed to determine if resource is namespace scoped", "kind", obj.GetObjectKind().GroupVersionKind().Kind)
291291
return
292292
}
293293

0 commit comments

Comments
 (0)