add logger with fields

This commit is contained in:
c9s 2020-10-17 10:39:03 +08:00
parent 25b4b22077
commit 615da2e1d8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"
)