From db3a82fc97fe22a40ac253fc0f200d5f0acd499d Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Wed, 25 Apr 2018 13:30:58 +0200 Subject: [PATCH] Update changelog, add simple testcase --- CHANGELOG.md | 2 +- types/context_test.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1799ea5ab..98eef848d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/types/context_test.go b/types/context_test.go index ebed046cef..d813516f0b 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -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") +}