Skip to content

Commit

Permalink
fix: Hide crane warnings by default
Browse files Browse the repository at this point in the history
Warnings such as the following cause confusion for no reason - everything is working as expected:

```
2023/09/13 17:32:25 retrying without mount: POST
UNAUTHORIZED: project istio not found: project istio not found
```
  • Loading branch information
jimmidyson committed Sep 13, 2023
1 parent db9ba5e commit 8bf4961
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/mindthegap/create/imagebundle/image_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func NewCommand(out output.Output) *cobra.Command {
out.EndOperationWithStatus(output.Success())

logs.Debug.SetOutput(out.V(4).InfoWriter())
logs.Warn.SetOutput(out.InfoWriter())
logs.Warn.SetOutput(out.V(2).InfoWriter())

// Sort registries for deterministic ordering.
regNames := cfg.SortedRegistryNames()
Expand Down
2 changes: 1 addition & 1 deletion cmd/mindthegap/push/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func NewCommand(out output.Output, bundleCmdName string) *cobra.Command {
out.EndOperationWithStatus(output.Success())

logs.Debug.SetOutput(out.V(4).InfoWriter())
logs.Warn.SetOutput(out.InfoWriter())
logs.Warn.SetOutput(out.V(2).InfoWriter())

sourceTLSRoundTripper, err := httputils.InsecureTLSRoundTripper(remote.DefaultTransport)
if err != nil {
Expand Down

0 comments on commit 8bf4961

Please sign in to comment.