Merge pull request #268 from apriendeau/patch-3

hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now
This commit is contained in:
Simon Eskildsen 2015-10-06 16:33:52 -04:00
commit b673bf363d
1 changed files with 2 additions and 2 deletions

View File

@ -2,14 +2,14 @@ package main
import (
"github.com/Sirupsen/logrus"
"github.com/gemnasium/logrus-airbrake-hook"
"gopkg.in/gemnasium/logrus-airbrake-hook.v2"
)
var log = logrus.New()
func init() {
log.Formatter = new(logrus.TextFormatter) // default
log.Hooks.Add(airbrake.NewHook("https://example.com", "xyz", "development"))
log.Hooks.Add(airbrake.NewHook(123, "xyz", "development"))
}
func main() {