From 45572117ae45f7107d760eb5830beb779481fd30 Mon Sep 17 00:00:00 2001 From: Marko Date: Wed, 24 Feb 2021 18:56:28 +0000 Subject: [PATCH] logging: print string instead of callback (#6177) ## 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. --- 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