Update changelog, add simple testcase

This commit is contained in:
Christopher Goes 2018-04-25 13:30:58 +02:00
parent ad6c7f0be4
commit db3a82fc97
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
2 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,7 @@ FEATURES:
* Create genesis transactions with `gaiad init gen-tx`
* New genesis account keys are automatically added to the client keybase (introduce `--client-home` flag)
* Initialize with genesis txs using `--gen-txs` flag
* Context now has access to the applicaiton logger
* Context now has access to the application-configured logger
BREAKING CHANGES

View File

@ -60,3 +60,11 @@ func TestCacheContext(t *testing.T) {
assert.Equal(t, v2, store.Get(k2))
}
func TestLogContext(t *testing.T) {
key := types.NewKVStoreKey(t.Name())
ctx := defaultContext(key)
ctx.Logger().Debug("debug")
ctx.Logger().Info("info")
ctx.Logger().Error("error")
}