remove unused logger field

This commit is contained in:
c9s 2020-11-12 17:26:36 +08:00
parent 0e16434e24
commit cd283f2c28
3 changed files with 0 additions and 7 deletions

View File

@ -37,11 +37,6 @@ type ExchangeOrderExecutor struct {
Notifiability `json:"-"`
session *ExchangeSession
logger Logger
}
func (e *ExchangeOrderExecutor) SetLogger(logger Logger) {
e.logger = logger
}
func (e *ExchangeOrderExecutor) notifySubmitOrders(orders ...types.SubmitOrder) {

View File

@ -28,7 +28,6 @@ func (e *RiskControlOrderExecutor) SubmitOrders(ctx context.Context, orders ...t
orders, riskErrs = controller.BasicRiskController.ProcessOrders(e.session, orders...)
for _, riskErr := range riskErrs {
// use logger from ExchangeOrderExecutor
e.logger.Warnf(riskErr.Error())
logrus.Warnf("RISK ERROR: %s", riskErr.Error())
}
}

View File

@ -136,7 +136,6 @@ func (trader *Trader) Run(ctx context.Context) error {
// copy the environment notification system so that we can route
Notifiability: trader.environment.Notifiability,
session: session,
logger: trader.logger,
}
// default to base order executor