You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently example_hook_test.go uses gopkg.in/gemnasium/logrus-airbrake-hook.v2 to demonstrate using hooks. This is a very heavy import and with the introduction of Go modules will propagate to all projects using logrus.
For example, if I set logrus as a dependency to my Go module and run go build then the following build dependencies are added to my requirements:
All because of gopkg.in/gemnasium/logrus-airbrake-hook.v2.
I suggest using github.com/sirupsen/logrus/hooks/syslog in the example instead: it demonstrates using hooks just as well and does not result in any additional dependencies.
The text was updated successfully, but these errors were encountered:
Currently
example_hook_test.go
usesgopkg.in/gemnasium/logrus-airbrake-hook.v2
to demonstrate using hooks. This is a very heavy import and with the introduction of Go modules will propagate to all projects using logrus.For example, if I set logrus as a dependency to my Go module and run
go build
then the following build dependencies are added to my requirements:However, when running
go mod tidy
to add all transitive dependencies (including testing), then I get these following additional lines:All because of
gopkg.in/gemnasium/logrus-airbrake-hook.v2
.I suggest using
github.com/sirupsen/logrus/hooks/syslog
in the example instead: it demonstrates using hooks just as well and does not result in any additional dependencies.The text was updated successfully, but these errors were encountered: