Skip to content

Commit

Permalink
replaced format with msg in needed parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jan 29, 2024
1 parent 25aaf82 commit f6386e0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/internal/cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}

func newCLILogger(cmd *cobra.Command) (debugLog, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/attestation/attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const (

// Logger is a logger used to print warnings and infos during attestation validation.
type Logger interface {
Info(format string, args ...any)
Warn(format string, args ...any)
Info(msg string, args ...any)
Warn(msg string, args ...any)
}

// NOPLogger is a no-op implementation of [Logger].
Expand Down
2 changes: 1 addition & 1 deletion internal/constellation/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type licenseChecker interface {
}

type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}

// NewApplier creates a new Applier.
Expand Down
2 changes: 1 addition & 1 deletion internal/constellation/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
)

type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}

// Client is a Helm client to apply charts.
Expand Down
2 changes: 1 addition & 1 deletion internal/constellation/kubecmd/kubecmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,5 +546,5 @@ type kubectlInterface interface {
}

type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}
2 changes: 1 addition & 1 deletion internal/verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,5 +708,5 @@ func httpGet(ctx context.Context, url string) ([]byte, error) {
}

type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}

0 comments on commit f6386e0

Please sign in to comment.