"reflect"
"github.com/bytom/errors"
- "github.com/bytom/log"
+ log "github.com/sirupsen/logrus"
)
// ErrBadRequest indicates the user supplied malformed JSON input,
err := json.NewEncoder(w).Encode(Array(v))
if err != nil {
- log.Error(ctx, err)
+ log.WithField("error", err).Error("Error encountered during writing the Content-Type header using status")
}
}