From 55ae781efa9cae5264cef57f5be1c51798bd9391 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 24 Feb 2021 19:08:05 +0000 Subject: [PATCH] logging: print string instead of callback (#6178) ## Description Fixes marshaling error in sdk closes https://github.com/cosmos/cosmos-sdk/issues/8578 the output stays the same, we are avoiding the passing of the callback because sdk uses typed logging. Co-authored-by: Marko --- libs/service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/service/service.go b/libs/service/service.go index f8358213b..5efd0f04d 100644 --- a/libs/service/service.go +++ b/libs/service/service.go @@ -136,7 +136,7 @@ func (bs *BaseService) Start() error { atomic.StoreUint32(&bs.started, 0) return ErrAlreadyStopped } - bs.Logger.Info(fmt.Sprintf("Starting %v service", bs.name), "impl", bs.impl) + bs.Logger.Info(fmt.Sprintf("Starting %v service", bs.name), "impl", bs.impl.String()) err := bs.impl.OnStart() if err != nil { // revert flag