mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
grid2: improve some logging
This commit is contained in:
parent
1347c8ef87
commit
5f9d020ac8
|
@ -42,14 +42,14 @@ func (s *Strategy) recoverActiveOrdersPeriodically(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Strategy) syncActiveOrders(ctx context.Context) error {
|
func (s *Strategy) syncActiveOrders(ctx context.Context) error {
|
||||||
|
s.logger.Infof("[ActiveOrderRecover] syncActiveOrders")
|
||||||
|
|
||||||
recovered := atomic.LoadInt32(&s.recovered)
|
recovered := atomic.LoadInt32(&s.recovered)
|
||||||
if recovered == 0 {
|
if recovered == 0 {
|
||||||
s.logger.Infof("[ActiveOrderRecover] skip recovering active orders because recover not ready")
|
s.logger.Infof("[ActiveOrderRecover] skip recovering active orders because recover not ready")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
s.logger.Infof("[ActiveOrderRecover] recovering active orders with open orders")
|
|
||||||
|
|
||||||
if s.getGrid() == nil {
|
if s.getGrid() == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user