diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-11 17:52:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-19 09:42:41 +0900 |
commit | 6d47f53b8bf59489bb263405e5eb6acdbcce86e9 (patch) | |
tree | 1cf3016a93d06f9686372175532593e834e474a4 /gobgpd/util.go | |
parent | c3d98dac4df7d55fc6aceb4558707f252bbbd765 (diff) |
fix for logrus package name change
https://github.com/sirupsen/logrus/commit/f30ff25fb7e208f9fe65f4ae913129b8220d30c1
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/util.go')
-rw-r--r-- | gobgpd/util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobgpd/util.go b/gobgpd/util.go index 25e9b888..1b7885b8 100644 --- a/gobgpd/util.go +++ b/gobgpd/util.go @@ -27,7 +27,7 @@ import ( "syscall" log "github.com/sirupsen/logrus" - "github.com/sirupsen/logrus/hooks/syslog" + lSyslog "github.com/sirupsen/logrus/hooks/syslog" ) func init() { @@ -94,7 +94,7 @@ func addSyslogHook(host, facility string) error { priority = syslog.LOG_LOCAL7 } - hook, err := logrus_syslog.NewSyslogHook(network, addr, syslog.LOG_INFO|priority, "bgpd") + hook, err := lSyslog.NewSyslogHook(network, addr, syslog.LOG_INFO|priority, "bgpd") if err != nil { return err } |