From 846f463cfc42d1b890013d946126c7f79f0db4d5 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 8 Dec 2020 16:32:39 +0800 Subject: [PATCH] print loaded position --- pkg/strategy/mirrormaker/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/strategy/mirrormaker/main.go b/pkg/strategy/mirrormaker/main.go index 832596c9a..e1692ce39 100644 --- a/pkg/strategy/mirrormaker/main.go +++ b/pkg/strategy/mirrormaker/main.go @@ -264,6 +264,8 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se if err := s.Persistence.Load(&s.Position, "position"); err != nil { log.WithError(err).Warnf("can not load position") + } else { + log.Infof("position is loaded successfully, position=%f", s.Position.Float64()) } go func() {