diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index 983f92d09..d00790f37 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -8,13 +8,15 @@ import ( "time" "github.com/pkg/errors" - log "github.com/sirupsen/logrus" + "github.com/sirupsen/logrus" maxapi "github.com/c9s/bbgo/pkg/exchange/max/maxapi" "github.com/c9s/bbgo/pkg/types" "github.com/c9s/bbgo/pkg/util" ) +var log = logrus.WithField("exchange", "max") + type Exchange struct { client *maxapi.RestClient key, secret string diff --git a/pkg/exchange/max/stream.go b/pkg/exchange/max/stream.go index 9f037fff1..ae57994a7 100644 --- a/pkg/exchange/max/stream.go +++ b/pkg/exchange/max/stream.go @@ -3,8 +3,6 @@ package max import ( "context" - log "github.com/sirupsen/logrus" - max "github.com/c9s/bbgo/pkg/exchange/max/maxapi" "github.com/c9s/bbgo/pkg/types" )