opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
35 stars 64 forks source link

Logrus related compile time error #12

Closed aswinmprabhu closed 5 years ago

aswinmprabhu commented 5 years ago
# github.com/moira-alert/moira/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client
vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client/client.go:179:14: conf.Logger.SetFormatter undefined (type *logrus.Logger has no field or method SetFormatter)
vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client/client.go:249:23: client.Config.Logger.GetLevel undefined (type *logrus.Logger has no field or method GetLevel)
vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client/config.go:90:14: undefined: logrus.TraceLevel

I am getting the above error when trying to complie code that uses the github.com/opsgenie/opsgenie-go-sdk-v2/client package. I am using govendor to vendor my dependencies. Any ideas on what might be the issue?

borovskyav commented 5 years ago

Good support guys...

cglrkn commented 5 years ago

Can you please provide more information about the env; the golang version you using and does the logurs exists in your GOPATH?

aswinmprabhu commented 5 years ago

Already solved it! Turns out it was a dependency mismatch issue. You were using a newer version of logrus. Thanks anyway!