mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
remove unused logger field
This commit is contained in:
parent
0e16434e24
commit
cd283f2c28
|
@ -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) {
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user