Skip to content

Commit

Permalink
fix: avoid cli redundant log in stdout (cosmos#19371)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored and mhofman committed Feb 8, 2024
1 parent aa291d8 commit 84d5de0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-Agoric.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

* Agoric/agoric-sdk#8871 Have `tx gov submit-proposal` accept either new or legacy syntax

### Bug Fixes

* (crypto) [#19371](https://github.com/cosmos/cosmos-sdk/pull/19371) Avoid cli redundant log in stdout, log to stderr instead.

## `v0.46.16-alpha.agoric.1` - 2024-02-05

* Agoric/agoric-sdk#8224 Merge [cosmos/cosmos-sdk v0.46.16](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.16)
Expand Down
4 changes: 2 additions & 2 deletions crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ func (ks keystore) MigrateAll() ([]*Record, error) {

rec, err := ks.migrate(key)
if err != nil {
fmt.Printf("migrate err for key %s: %q\n", key, err)
fmt.Fprintf(os.Stderr, "migrate err for key %s: %q\n", key, err)
continue
}

Expand Down Expand Up @@ -926,7 +926,7 @@ func (ks keystore) migrate(key string) (*Record, error) {
return nil, fmt.Errorf("unable to set keyring.Item, err: %w", err)
}

fmt.Printf("Successfully migrated key %s.\n", key)
fmt.Fprintf(os.Stderr, "Successfully migrated key %s.\n", key)

return k, nil
}
Expand Down

0 comments on commit 84d5de0

Please sign in to comment.