Skip to content

Commit

Permalink
Fix text/lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Apr 28, 2024
1 parent 2b4236f commit 3d277d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ run:
timeout: 10m
build-tags:
- containers_image_openpgp
- containers_image_storage_stub
linters:
disable-all: true
# Look at this for details: https://golangci-lint.run/usage/linters/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ vet: ## Run go vet against code.

.PHONY: test
test: fmt vet envtest ## Run tests.
go test --coverprofile cover.out --tags containers_image_openpgp ./...
go test --coverprofile cover.out --tags containers_image_openpgp,containers_image_storage_stub ./...

.PHONY: lint-lic
lint-lic: addlicense ## Run addlicense to check if all files have the license header.
Expand Down
2 changes: 2 additions & 0 deletions cmd/hhfab/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func setupLogger(verbose, brief bool) error {
slog.Debug("\n" + motd)
slog.Debug("Version: " + version)

vlab.SetupCtrlRuntimeLogs()

return nil
}

Expand Down
6 changes: 1 addition & 5 deletions pkg/fab/vlab/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
)

func init() {
setupCtrlRuntimeLogs()
}

// TODO properly handle logging config for ctrl runtime
func setupCtrlRuntimeLogs() {
func SetupCtrlRuntimeLogs() {
opts := zap.Options{
Development: true,
}
Expand Down

0 comments on commit 3d277d0

Please sign in to comment.