Skip to content

Commit

Permalink
Merge pull request #9446 from sbueringer/pr-add-loggercheck
Browse files Browse the repository at this point in the history
🌱 Add loggercheck linter and fix findings
  • Loading branch information
k8s-ci-robot committed Sep 18, 2023
2 parents 0333e94 + 55b983e commit 90537d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ linters:
- govet
- importas
- ineffassign
- loggercheck
- misspell
- nakedret
- nilerr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (r *Reconciler) reconcileOldMachineSetsOnDelete(ctx context.Context, oldMSs
}
selectorMap, err := metav1.LabelSelectorAsMap(&oldMS.Spec.Selector)
if err != nil {
log.V(4).Error(err, "failed to convert MachineSet %q label selector to a map", oldMS.Name)
log.V(4).Error(err, "failed to convert MachineSet label selector to a map")
continue
}
log.V(4).Info("Fetching Machines associated with MachineSet")
Expand Down
2 changes: 1 addition & 1 deletion test/infrastructure/docker/internal/docker/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func createNode(ctx context.Context, opts *nodeCreateOpts) (*types.Node, error)
}
}

log.V(6).Info("Container run options: %+v", runOptions)
log.V(6).Info(fmt.Sprintf("Container run options: %+v", runOptions))

containerRuntime, err := container.RuntimeFrom(ctx)
if err != nil {
Expand Down

0 comments on commit 90537d1

Please sign in to comment.